3 REM ------------------------------------------
10 REM ------------------------------------------
11 set "BUILDENV_TXT=%~dp0\buildenv.txt"
13 set "BUILDENV_TXT=%~1"
15 REM ------------------------------------------
16 if not exist "%BUILDENV_TXT%" (
18 echo Could not find 'buildenv.txt' in current directory^!
19 echo Please create your 'buildenv.txt' file from 'buildenv.template.txt' first.
24 REM ------------------------------------------
25 for /f "tokens=2,*" %%s in (%BUILDENV_TXT%) do (
26 if "%%s"=="PATH_UPXBIN" set "PATH_UPXBIN=%%~t"
27 if "%%s"=="PATH_MKNSIS" set "PATH_MKNSIS=%%~t"
28 if "%%s"=="PATH_MSCDIR" set "PATH_MSCDIR=%%~t"
29 if "%%s"=="PATH_QTMSVC" set "PATH_QTMSVC=%%~t"
30 if "%%s"=="PATH_GNUPG1" set "PATH_GNUPG1=%%~t"
31 if "%%s"=="PATH_VCPROJ" set "PATH_VCPROJ=%%~t"
33 REM ------------------------------------------
35 REM ------------------------------------------
36 echo === BEGIN PATHS ===
37 echo PATH_UPXBIN = "%PATH_UPXBIN%"
38 echo PATH_MKNSIS = "%PATH_MKNSIS%"
39 echo PATH_MSCDIR = "%PATH_MSCDIR%"
40 echo PATH_QTMSVC = "%PATH_QTMSVC%"
41 echo PATH_GNUPG1 = "%PATH_GNUPG1%"
42 echo PATH_VCPROJ = "%PATH_VCPROJ%"
43 echo === END PATHS ===
44 REM ------------------------------------------
46 REM ------------------------------------------
47 if not exist "%PATH_UPXBIN%\upx.exe" GOTO:EOF
48 if not exist "%PATH_MKNSIS%\makensis.exe" GOTO:EOF
49 if not exist "%PATH_MSCDIR%\VC\vcvarsall.bat" GOTO:EOF
50 if not exist "%PATH_MSCDIR%\VC\bin\cl.exe" GOTO:EOF
51 if not exist "%PATH_QTMSVC%\bin\uic.exe" GOTO:EOF
52 if not exist "%PATH_QTMSVC%\bin\moc.exe" GOTO:EOF
53 if not exist "%PATH_QTMSVC%\bin\rcc.exe" GOTO:EOF
54 if not exist "%PATH_GNUPG1%\gpg.exe" GOTO:EOF
55 if not exist "%PATH_GNUPG1%\gpg.exe" GOTO:EOF
56 if not exist "%~dp0\..\..\%PATH_VCPROJ%" GOTO:EOF
57 REM ------------------------------------------
58 if exist "%PATH_QTMSVC%\bin\qtvars.bat" goto qtvars_found
59 if exist "%PATH_QTMSVC%\bin\qtenv2.bat" goto qtvars_found
62 REM ------------------------------------------