2014-03-05 17:46:37 -05:00
|
|
|
set QTDIR=C:\Qt\4.8.5
|
|
|
|
set MINGW=C:\MinGW
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2014-03-05 17:46:37 -05:00
|
|
|
set PATH=%QTDIR%\bin;%MINGW%\bin;%PATH%
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2014-03-05 17:46:37 -05:00
|
|
|
"C:\Program Files\TortoiseSVN\bin\SubWCRev" . libretroshare\src\util\rsversion.in libretroshare\src\util\rsversion.h
|
|
|
|
"C:\Program Files\TortoiseSVN\bin\SubWCRev" . retroshare-gui\src\util\rsguiversion.in retroshare-gui\src\util\rsguiversion.h
|
|
|
|
"C:\Program Files\TortoiseSVN\bin\SubWCRev" . retroshare-gui\src\retroshare.in retroshare-gui\src\retroshare.nsi
|
2012-09-05 21:29:44 -04:00
|
|
|
|
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=
|
|
|
|
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
|
|
|
|
shift
|
|
|
|
goto :loop1
|
|
|
|
)
|
2012-09-05 21:29:44 -04:00
|
|
|
if /i %1==pack (
|
|
|
|
set pack=pack
|
|
|
|
shift
|
|
|
|
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 (
|
|
|
|
@echo on
|
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
|
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
mingw32-make %%a
|
2012-12-21 04:59:48 -05:00
|
|
|
|
|
|
|
|
2012-09-05 21:29:44 -04:00
|
|
|
cd ..\..\openpgpsdk\src
|
|
|
|
|
|
|
|
if not %clean%x==x mingw32-make clean
|
|
|
|
|
|
|
|
qmake openpgpsdk.pro
|
|
|
|
|
|
|
|
mingw32-make
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-12-21 04:59:48 -05:00
|
|
|
|
2011-07-02 12:52:58 -04:00
|
|
|
cd ..\..\libretroshare\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 libretroshare.pro
|
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
mingw32-make %%a
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-12-21 04:59:48 -05:00
|
|
|
|
|
|
|
cd ..\..\supportlibs\pegmarkdown
|
|
|
|
|
|
|
|
if not %clean%x==x mingw32-make clean
|
|
|
|
|
|
|
|
qmake pegmarkdown.pro
|
|
|
|
|
|
|
|
mingw32-make %%a
|
|
|
|
|
|
|
|
|
2012-09-18 11:00:26 -04:00
|
|
|
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
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
mingw32-make %%a
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-12-21 04:59:48 -05:00
|
|
|
|
2011-07-02 12:52:58 -04:00
|
|
|
cd ..\..\retroshare-gui\src
|
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
if not %clean%x==x mingw32-make clean
|
2012-02-20 07:38:04 -05:00
|
|
|
|
2012-07-31 07:36:00 -04:00
|
|
|
qmake retroshare-gui.pro
|
2011-07-02 12:52:58 -04:00
|
|
|
|
2012-07-22 08:03:11 -04:00
|
|
|
mingw32-make %%a
|
|
|
|
|
|
|
|
cd ..\..
|
2012-09-05 21:29:44 -04:00
|
|
|
@echo off
|
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
|
2012-07-22 08:03:11 -04:00
|
|
|
rem clean up
|
|
|
|
set clean=
|
|
|
|
del tmp.txt
|
2012-09-05 21:29:44 -04:00
|
|
|
set pack=
|
2011-07-02 12:52:58 -04:00
|
|
|
pause
|
|
|
|
|