2015-09-03 13:35:29 -04:00
|
|
|
set QTDIR=C:\Qt\5.5\mingw492_32\
|
|
|
|
set MINGW=C:\Qt\Tools\mingw492_32
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
set PATH=%QTDIR%\bin;%MINGW%\bin;%PATH%
|
|
|
|
set DEBUG=1
|
2012-07-22 08:03:11 -04:00
|
|
|
|
|
|
|
@echo off
|
2012-09-05 21:29:44 -04:00
|
|
|
rem emptying used variables in case the script was aborted and tempfile
|
|
|
|
set pack=
|
|
|
|
set clean=
|
2015-09-03 13:35:29 -04:00
|
|
|
set errorlevel=
|
2012-09-05 21:29:44 -04:00
|
|
|
if exist tmp.txt del tmp.txt
|
|
|
|
|
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
:loop1
|
|
|
|
if %1x == x (
|
|
|
|
rem if not exist tmp.txt echo debug >>tmp.txt
|
|
|
|
goto :end1
|
|
|
|
)
|
|
|
|
if /i %1==clean (
|
|
|
|
set clean=clean
|
2015-09-03 13:35:29 -04:00
|
|
|
shift
|
2012-07-22 08:03:11 -04:00
|
|
|
goto :loop1
|
|
|
|
)
|
2012-09-05 21:29:44 -04:00
|
|
|
if /i %1==pack (
|
|
|
|
set pack=pack
|
2015-09-03 13:35:29 -04:00
|
|
|
shift
|
2012-09-05 21:29:44 -04:00
|
|
|
goto :loop1
|
|
|
|
)
|
2012-07-22 08:03:11 -04:00
|
|
|
echo.%1>>tmp.txt
|
|
|
|
shift
|
|
|
|
goto :loop1
|
|
|
|
|
|
|
|
:end1
|
|
|
|
if %clean%x==cleanx (
|
|
|
|
if not exist tmp.txt echo %clean% >>tmp.txt
|
|
|
|
)
|
2012-09-05 21:29:44 -04:00
|
|
|
|
|
|
|
if not exist tmp.txt (
|
|
|
|
if not %pack%x==packx (
|
|
|
|
echo debug >>tmp.txt
|
|
|
|
set clean=clean
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
for /f %%a in (tmp.txt) do (
|
2015-09-03 13:35:29 -04:00
|
|
|
if ECHO==1 @echo on
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rem TODO: Remove these lines
|
|
|
|
rem GOTO :retroshare-gui
|
|
|
|
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
|
|
|
|
|
|
|
|
:libbitdht
|
|
|
|
rem ###################################
|
|
|
|
rem ### libbitdht #####################
|
|
|
|
rem ###################################
|
2011-07-02 12:52:58 -04:00
|
|
|
cd libbitdht\src
|
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
if not %clean%x==x mingw32-make clean
|
2011-07-02 12:52:58 -04:00
|
|
|
|
|
|
|
qmake libbitdht.pro
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
mingw32-make %%a
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
|
|
|
echo ###################################
|
|
|
|
echo ### libbitdht done ################
|
|
|
|
echo ###################################
|
|
|
|
cd ..\..
|
2012-12-21 04:59:48 -05:00
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
:openpgpsdk
|
|
|
|
rem ###################################
|
|
|
|
rem ### openpgpsdk ####################
|
|
|
|
rem ###################################
|
|
|
|
cd openpgpsdk\src
|
2012-09-05 21:29:44 -04:00
|
|
|
|
|
|
|
if not %clean%x==x mingw32-make clean
|
|
|
|
|
|
|
|
qmake openpgpsdk.pro
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
2012-09-05 21:29:44 -04:00
|
|
|
|
|
|
|
mingw32-make
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
|
|
|
echo ###################################
|
|
|
|
echo ### openpgpsdk done ###############
|
|
|
|
echo ###################################
|
|
|
|
cd ..\..
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
:libresapi
|
|
|
|
rem ###################################
|
|
|
|
rem ### libresapi #####################
|
|
|
|
rem ###################################
|
|
|
|
cd libresapi\src
|
2015-08-07 10:50:35 -04:00
|
|
|
|
|
|
|
if not %clean%x==x mingw32-make clean
|
|
|
|
|
|
|
|
qmake libresapi.pro
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
2015-08-07 10:50:35 -04:00
|
|
|
|
|
|
|
mingw32-make %%a
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
|
|
|
echo ###################################
|
|
|
|
echo ### libresapi done ################
|
|
|
|
echo ###################################
|
|
|
|
cd ..\..
|
2012-12-21 04:59:48 -05:00
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
:libretroshare
|
|
|
|
rem ###################################
|
|
|
|
rem ### libretroshare #################
|
|
|
|
rem ###################################
|
|
|
|
cd libretroshare\src
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
if not %clean%x==x mingw32-make clean
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2015-08-11 10:44:59 -04:00
|
|
|
qmake libretroshare.pro "CONFIG+=version_detail_bash_script"
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
mingw32-make %%a
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
|
|
|
echo ###################################
|
|
|
|
echo ### libretroshare done ############
|
|
|
|
echo ###################################
|
|
|
|
cd ..\..
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
:pegmarkdown
|
|
|
|
rem ###################################
|
|
|
|
rem ### pegmarkdown ###################
|
|
|
|
rem ###################################
|
|
|
|
cd supportlibs\pegmarkdown
|
2012-12-21 04:59:48 -05:00
|
|
|
|
|
|
|
if not %clean%x==x mingw32-make clean
|
|
|
|
|
|
|
|
qmake pegmarkdown.pro
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
2012-12-21 04:59:48 -05:00
|
|
|
|
|
|
|
mingw32-make %%a
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
|
|
|
echo ###################################
|
|
|
|
echo ### pegmarkdown done ##############
|
|
|
|
echo ###################################
|
|
|
|
cd ..\..
|
2012-12-21 04:59:48 -05:00
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
:retroshare-nogui
|
|
|
|
rem ###################################
|
|
|
|
rem ### retroshare-nogui ##############
|
|
|
|
rem ###################################
|
|
|
|
cd retroshare-nogui\src
|
2012-07-18 06:53:17 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
if not %clean%x==x mingw32-make clean
|
2012-07-18 06:53:17 -04:00
|
|
|
|
2012-09-18 11:00:26 -04:00
|
|
|
qmake retroshare-nogui.pro
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
mingw32-make %%a
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
|
|
|
echo ###################################
|
|
|
|
echo ### retroshare-nogui done #########
|
|
|
|
echo ###################################
|
|
|
|
cd ..\..
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
:retroshare-gui
|
|
|
|
rem ###################################
|
|
|
|
rem ### retroshare-gui ################
|
|
|
|
rem ###################################
|
|
|
|
cd retroshare-gui\src
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
if not %clean%x==x mingw32-make clean
|
2012-02-20 07:38:04 -05:00
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
rem qmake -r -spec ..\mkspecs\win32-g++ "CONFIG+=version_detail_bash_script" retroshare-gui.pro
|
|
|
|
qmake retroshare-gui.pro "CONFIG+=version_detail_bash_script"
|
|
|
|
CALL :TEST_ERROR
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
mingw32-make %%a
|
2015-09-03 13:35:29 -04:00
|
|
|
CALL :TEST_ERROR
|
|
|
|
echo ###################################
|
|
|
|
echo ### retroshare-gui done ###########
|
|
|
|
echo ###################################
|
2012-07-22 08:03:11 -04:00
|
|
|
|
|
|
|
cd ..\..
|
2012-09-05 21:29:44 -04:00
|
|
|
@echo off
|
2012-07-22 08:03:11 -04:00
|
|
|
)
|
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
@echo off
|
2012-09-05 21:29:44 -04:00
|
|
|
if %pack%x==packx call packaging.bat
|
2015-09-03 13:35:29 -04:00
|
|
|
rem ###################################
|
|
|
|
rem ### clean up ######################
|
|
|
|
rem ###################################
|
2012-07-22 08:03:11 -04:00
|
|
|
set clean=
|
|
|
|
del tmp.txt
|
2012-09-05 21:29:44 -04:00
|
|
|
set pack=
|
2011-07-02 12:52:58 -04:00
|
|
|
pause
|
|
|
|
|
2015-09-03 13:35:29 -04:00
|
|
|
rem ###################################
|
|
|
|
rem ### END ###########################
|
|
|
|
rem ###################################
|
|
|
|
GOTO :EOF
|
|
|
|
|
|
|
|
|
|
|
|
:TEST_ERROR
|
|
|
|
@echo off
|
|
|
|
if errorlevel 1 (
|
|
|
|
pause
|
|
|
|
set clean=
|
|
|
|
del tmp.txt
|
|
|
|
set pack=
|
|
|
|
EXIT
|
|
|
|
)
|
|
|
|
if ECHO==1 @echo on
|
|
|
|
EXIT /B
|
|
|
|
|
|
|
|
:EOF
|