From 48540940b6c28bb4378abfeb500ec45a625b37b6 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 15 May 2012 10:38:20 +0000 Subject: initial commit git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/variables/pack.cmd | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 plugins/variables/pack.cmd (limited to 'plugins/variables/pack.cmd') diff --git a/plugins/variables/pack.cmd b/plugins/variables/pack.cmd new file mode 100644 index 0000000000..9e7ddb4e71 --- /dev/null +++ b/plugins/variables/pack.cmd @@ -0,0 +1,35 @@ +@echo off +nmake -f Variables.mak CFG="Variables - Win32 Release" +if errorlevel 1 ( + echo "Make failed" + goto :eof ) +nmake -f Variables.mak CFG="Variables - Win32 Release Unicode" +if errorlevel 1 ( + echo "Make failed" + goto :eof ) + +del "%temp%\Variables.zip" > nul +del "%temp%\VariablesW.zip" > nul +del "%temp%\VariablesSrc.zip" > nul +del *.user > nul + +rd /S /Q Release +rd /S /Q Release_Unicode + +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%\Variables.zip" ../../bin/Release/Plugins/Variables.dll variables-translation.txt m_variables.h +del ../../bin/Release/Plugins/Variables.dll >nul + +"%PROGRAMFILES%\7-zip\7z.exe" a -tzip -r- -mx=9 "%temp%\VariablesW.zip" "../../bin/Release Unicode/Plugins/Variables.dll" variables-translation.txt m_variables.h +del "../../bin/Release Unicode/Plugins/Variables.dll" >nul + +cd .. +"%PROGRAMFILES%\7-zip\7z.exe" a -tzip -r0 -mx=9 "%temp%\VariablesSrc.zip" -ir!helpers/*.* -ir!Variables/*.* -ir!NewTriggerPlugin/*.* -xr!.svn -x!*.cmd +goto :eof + +:Translate +if %2 == __FILEVERSION_STRING ( + perl lpgen.pl variables version %3 %4 %5 %6 ) + +goto :eof -- cgit v1.2.3