diff options
Diffstat (limited to 'wbOSD/pack.cmd')
-rw-r--r-- | wbOSD/pack.cmd | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/wbOSD/pack.cmd b/wbOSD/pack.cmd new file mode 100644 index 0000000..bd37e4d --- /dev/null +++ b/wbOSD/pack.cmd @@ -0,0 +1,31 @@ +@echo off
+nmake -f wbOSD.mak CFG="wbOSD - Win32 Release"
+if errorlevel 1 (
+ echo "Make failed"
+ goto :eof )
+nmake -f wbOSD.mak CFG="wbOSD - Win32 Release Unicode"
+if errorlevel 1 (
+ echo "Make failed"
+ goto :eof )
+
+del "%temp%\wbOSD.zip" > nul
+del "%temp%\wbOSDW.zip" > nul
+del "%temp%\wbOSDSrc.zip" > nul
+del *.user > nul
+
+for /F "tokens=1-6 delims=, " %%i in (buildnumber.h) do call :Translate %%i %%j %%k %%l %%m %%n
+
+"%PROGRAMFILES%\7-zip\7z.exe" a -tzip -r- -mx=9 "%temp%\wbOSD.zip" ./Release/wbOSD.dll wbOSD-translation.txt
+"%PROGRAMFILES%\7-zip\7z.exe" a -tzip -r- -mx=9 "%temp%\wbOSDW.zip" ./Release_Unicode/wbOSD.dll wbOSD-translation.txt
+
+rd /S /Q Release
+rd /S /Q Release_Unicode
+
+"%PROGRAMFILES%\7-zip\7z.exe" a -tzip -r0 -mx=9 "%temp%\wbOSDSrc.zip" -xr!.svn -x!*.cmd
+goto :eof
+
+:Translate
+if %2 == __FILEVERSION_STRING (
+ perl lpgen.pl wbOSD version %3 %4 %5 %6 )
+
+goto :eof
|