| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- @echo off
- rem Copyright (c) 2018, ETH Zurich and UNC Chapel Hill.
- rem All rights reserved.
- rem
- rem Redistribution and use in source and binary forms, with or without
- rem modification, are permitted provided that the following conditions are met:
- rem
- rem * Redistributions of source code must retain the above copyright
- rem notice, this list of conditions and the following disclaimer.
- rem
- rem * Redistributions in binary form must reproduce the above copyright
- rem notice, this list of conditions and the following disclaimer in the
- rem documentation and/or other materials provided with the distribution.
- rem
- rem * Neither the name of ETH Zurich and UNC Chapel Hill nor the names of
- rem its contributors may be used to endorse or promote products derived
- rem from this software without specific prior written permission.
- rem
- rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- rem AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- rem IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- rem ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
- rem LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- rem CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- rem SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- rem INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- rem CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- rem ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- rem POSSIBILITY OF SUCH DAMAGE.
- rem
- rem Author: Johannes L. Schoenberger (jsch-at-demuc-dot-de)
- set SCRIPT_PATH=%~dp0
- set PATH=%SCRIPT_PATH%\lib;%PATH%
- set QT_PLUGIN_PATH=%SCRIPT_PATH%\lib\plugins;%QT_PLUGIN_PATH%
- set COMMAND=%1
- set ARGUMENTS=
- shift
- :extract_argument_loop
- if "%1"=="" goto after_extract_argument_loop
- set ARGUMENTS=%ARGUMENTS% %1
- shift
- goto extract_argument_loop
- :after_extract_argument_loop
- if "%COMMAND%"=="" set COMMAND=gui
- "%SCRIPT_PATH%\bin\colmap" %COMMAND% %ARGUMENTS%
|