3 REM ------------------------------------------
12 REM ------------------------------------------
13 set "BUILDENV_TXT=%~dp0\buildenv.txt"
15 set "BUILDENV_TXT=%~1"
17 REM ------------------------------------------
18 if not exist "%BUILDENV_TXT%" (
20 echo Could not find 'buildenv.txt' in current directory^!
21 echo Please create your 'buildenv.txt' file from 'buildenv.template.txt' first.
26 REM ------------------------------------------
27 for /f "tokens=2,*" %%s in (%BUILDENV_TXT%) do (
28 if "%%s"=="PATH_SEVENZ" set "PATH_SEVENZ=%%~t"
29 if "%%s"=="PATH_MPRESS" set "PATH_MPRESS=%%~t"
30 if "%%s"=="PATH_UPXBIN" set "PATH_UPXBIN=%%~t"
31 if "%%s"=="PATH_MKNSIS" set "PATH_MKNSIS=%%~t"
32 if "%%s"=="PATH_MSVC90" set "PATH_MSVC90=%%~t"
33 if "%%s"=="PATH_QTMSVC" set "PATH_QTMSVC=%%~t"
34 if "%%s"=="PATH_GNUPG1" set "PATH_GNUPG1=%%~t"
35 if "%%s"=="PATH_VCPROJ" set "PATH_VCPROJ=%%~t"
37 REM ------------------------------------------
39 REM ------------------------------------------
40 echo === BEGIN PATHS ===
41 echo PATH_SEVENZ = "%PATH_SEVENZ%"
42 echo PATH_MPRESS = "%PATH_MPRESS%"
43 echo PATH_UPXBIN = "%PATH_UPXBIN%"
44 echo PATH_MKNSIS = "%PATH_MKNSIS%"
45 echo PATH_MSVC90 = "%PATH_MSVC90%"
46 echo PATH_QTMSVC = "%PATH_QTMSVC%"
47 echo PATH_GNUPG1 = "%PATH_GNUPG1%"
48 echo PATH_VCPROJ = "%PATH_VCPROJ%"
49 echo === END PATHS ===
50 REM ------------------------------------------
52 REM ------------------------------------------
53 if not exist "%PATH_SEVENZ%\7z.exe" GOTO:EOF
54 if not exist "%PATH_MPRESS%\mpress.exe" GOTO:EOF
55 if not exist "%PATH_UPXBIN%\upx.exe" GOTO:EOF
56 if not exist "%PATH_MKNSIS%\makensis.exe" GOTO:EOF
57 if not exist "%PATH_MSVC90%\VC\vcvarsall.bat" GOTO:EOF
58 if not exist "%PATH_MSVC90%\VC\bin\cl.exe" GOTO:EOF
59 if not exist "%PATH_QTMSVC%\bin\qtenv2.bat" GOTO:EOF
60 if not exist "%PATH_QTMSVC%\bin\uic.exe" GOTO:EOF
61 if not exist "%PATH_QTMSVC%\bin\moc.exe" GOTO:EOF
62 if not exist "%PATH_QTMSVC%\bin\rcc.exe" GOTO:EOF
63 if not exist "%PATH_GNUPG1%\gpg.exe" GOTO:EOF
64 if not exist "%PATH_GNUPG1%\gpg.exe" GOTO:EOF
65 if not exist "%~dp0\..\..\%PATH_VCPROJ%" GOTO:EOF
66 REM ------------------------------------------