Add build.bat

This commit is contained in:
Denis Fomin 2012-09-09 14:28:56 +04:00
parent 83dfd5e05b
commit 36d6e4b3b3
1 changed files with 37 additions and 0 deletions

37
build.bat Normal file
View File

@ -0,0 +1,37 @@
rmdir /S /Q gajim_built
mkdir gajim_built
hg archive gajim_built
xcopy ..\gajim-plugins\plugin_installer gajim_built\plugins\plugin_installer /e /i
copy msgfmt.exe gajim_built
copy gettextsrc.dll gajim_built
copy gettextlib.dll gajim_built
copy msvcr90.dll gajim_built
cd gajim_built
REM for libglade-2.0.0.dll
PATH=..\src\gtk\bin;%PATH%
c:\python27\python.exe setup_win32.py build_exe
move build\exe.win32-2.7 .
rename exe.win32-2.7 bin
copy ..\LIBEAY32.dll bin
copy ..\SSLEAY32.dll bin
mkdir bin\gtk
cd ../src/gtk
hg archive ..\..\gajim_built\bin\gtk
cd ../../gajim_built/
REM for msgfmt
PATH=bin\gtk\bin;%PATH%
for %%l in (po\*.po) do mkdir po\%%~nl & mkdir po\%%~nl\LC_MESSAGES & msgfmt -o po\%%~nl\LC_MESSAGES\gajim.mo %%l
"C:\Program Files\NSIS\makensis" gajim.nsi
cd ..