2010-11-06 23:04:47 +01:00
|
|
|
@echo off
|
2010-11-10 21:39:37 +01:00
|
|
|
set "LAMEXP_ERROR=1"
|
|
|
|
REM ------------------------------------------
|
|
|
|
set "PATH_UPXBIN="
|
|
|
|
set "PATH_MKNSIS="
|
2013-10-18 20:44:55 +02:00
|
|
|
set "PATH_MSCDIR="
|
2010-11-10 21:39:37 +01:00
|
|
|
set "PATH_QTMSVC="
|
2010-11-29 14:00:27 +01:00
|
|
|
set "PATH_GNUPG1="
|
2014-12-21 18:38:47 +01:00
|
|
|
set "PATH_PANDOC="
|
2011-04-08 00:25:06 +02:00
|
|
|
set "PATH_VCPROJ="
|
2010-11-10 21:39:37 +01:00
|
|
|
REM ------------------------------------------
|
2011-04-19 16:21:19 +02:00
|
|
|
set "BUILDENV_TXT=%~dp0\buildenv.txt"
|
2011-04-10 01:10:41 +02:00
|
|
|
if not "%~1"=="" (
|
|
|
|
set "BUILDENV_TXT=%~1"
|
|
|
|
)
|
|
|
|
REM ------------------------------------------
|
|
|
|
if not exist "%BUILDENV_TXT%" (
|
|
|
|
echo.
|
|
|
|
echo Could not find 'buildenv.txt' in current directory^!
|
|
|
|
echo Please create your 'buildenv.txt' file from 'buildenv.template.txt' first.
|
|
|
|
echo.
|
|
|
|
pause
|
|
|
|
exit
|
|
|
|
)
|
|
|
|
REM ------------------------------------------
|
|
|
|
for /f "tokens=2,*" %%s in (%BUILDENV_TXT%) do (
|
2010-11-10 21:39:37 +01:00
|
|
|
if "%%s"=="PATH_UPXBIN" set "PATH_UPXBIN=%%~t"
|
|
|
|
if "%%s"=="PATH_MKNSIS" set "PATH_MKNSIS=%%~t"
|
2013-10-18 20:44:55 +02:00
|
|
|
if "%%s"=="PATH_MSCDIR" set "PATH_MSCDIR=%%~t"
|
2010-11-10 21:39:37 +01:00
|
|
|
if "%%s"=="PATH_QTMSVC" set "PATH_QTMSVC=%%~t"
|
2010-11-29 14:00:27 +01:00
|
|
|
if "%%s"=="PATH_GNUPG1" set "PATH_GNUPG1=%%~t"
|
2014-12-21 18:38:47 +01:00
|
|
|
if "%%s"=="PATH_PANDOC" set "PATH_PANDOC=%%~t"
|
2011-04-08 00:25:06 +02:00
|
|
|
if "%%s"=="PATH_VCPROJ" set "PATH_VCPROJ=%%~t"
|
2010-11-10 21:39:37 +01:00
|
|
|
)
|
|
|
|
REM ------------------------------------------
|
2011-04-10 01:10:41 +02:00
|
|
|
set "BUILDENV_TXT="
|
|
|
|
REM ------------------------------------------
|
2011-04-10 19:14:23 +02:00
|
|
|
echo === BEGIN PATHS ===
|
2011-04-22 22:10:55 +02:00
|
|
|
echo PATH_UPXBIN = "%PATH_UPXBIN%"
|
|
|
|
echo PATH_MKNSIS = "%PATH_MKNSIS%"
|
2013-10-18 20:44:55 +02:00
|
|
|
echo PATH_MSCDIR = "%PATH_MSCDIR%"
|
2011-04-22 22:10:55 +02:00
|
|
|
echo PATH_QTMSVC = "%PATH_QTMSVC%"
|
|
|
|
echo PATH_GNUPG1 = "%PATH_GNUPG1%"
|
2014-12-21 18:38:47 +01:00
|
|
|
echo PATH_PANDOC = "%PATH_PANDOC%"
|
2011-04-22 22:10:55 +02:00
|
|
|
echo PATH_VCPROJ = "%PATH_VCPROJ%"
|
2011-04-10 19:14:23 +02:00
|
|
|
echo === END PATHS ===
|
2010-11-10 21:39:37 +01:00
|
|
|
REM ------------------------------------------
|
|
|
|
set "LAMEXP_ERROR=1"
|
|
|
|
REM ------------------------------------------
|
2014-12-21 18:38:47 +01:00
|
|
|
if not exist "%PATH_UPXBIN%\upx.exe" GOTO:EOF
|
|
|
|
if not exist "%PATH_MKNSIS%\makensis.exe" GOTO:EOF
|
2013-10-18 20:44:55 +02:00
|
|
|
if not exist "%PATH_MSCDIR%\VC\vcvarsall.bat" GOTO:EOF
|
2014-12-21 18:38:47 +01:00
|
|
|
if not exist "%PATH_MSCDIR%\VC\bin\cl.exe" GOTO:EOF
|
|
|
|
if not exist "%PATH_QTMSVC%\bin\uic.exe" GOTO:EOF
|
|
|
|
if not exist "%PATH_QTMSVC%\bin\moc.exe" GOTO:EOF
|
|
|
|
if not exist "%PATH_QTMSVC%\bin\rcc.exe" GOTO:EOF
|
|
|
|
if not exist "%PATH_GNUPG1%\gpg.exe" GOTO:EOF
|
|
|
|
if not exist "%PATH_PANDOC%\pandoc.exe" GOTO:EOF
|
|
|
|
if not exist "%~dp0\..\..\%PATH_VCPROJ%" GOTO:EOF
|
2010-11-10 21:39:37 +01:00
|
|
|
REM ------------------------------------------
|
2012-08-15 21:22:46 +02:00
|
|
|
if exist "%PATH_QTMSVC%\bin\qtvars.bat" goto qtvars_found
|
|
|
|
if exist "%PATH_QTMSVC%\bin\qtenv2.bat" goto qtvars_found
|
|
|
|
GOTO:EOF
|
|
|
|
:qtvars_found
|
|
|
|
REM ------------------------------------------
|
2010-11-10 21:39:37 +01:00
|
|
|
set "LAMEXP_ERROR=0"
|