diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-15 10:38:20 +0000 |
commit | 48540940b6c28bb4378abfeb500ec45a625b37b6 (patch) | |
tree | 2ef294c0763e802f91d868bdef4229b6868527de /bin/makel.bat | |
parent | 5c350913f011e119127baeb32a6aedeb4f0d33bc (diff) |
initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@2 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'bin/makel.bat')
-rw-r--r-- | bin/makel.bat | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/bin/makel.bat b/bin/makel.bat new file mode 100644 index 0000000000..2ec7348175 --- /dev/null +++ b/bin/makel.bat @@ -0,0 +1,31 @@ +@echo off
+
+for /F "tokens=1,2,3 delims= " %%i in (build.no) do call :LPGen %%i %%j %%k
+if errorlevel 1 goto :Error
+
+for /F "tokens=1,2,3 delims= " %%i in (build.no) do call :Pack %%i %%j %%k
+if errorlevel 1 goto :Error
+
+goto :eof
+
+:LPGen
+pushd ..\..\miranda-tools\lpgen
+call perl lpgen.pl version %1 %2 %3
+popd
+goto :eof
+
+:Pack
+if %2 == 00 (
+ set FileVer=v%1a%3.zip
+) else (
+ set FileVer=v%1%2a%3.zip
+)
+
+del /Q /F "%Temp%\miranda-langpack-%FileVer%"
+7z.exe a -tzip -r -mx=9 "%Temp%\miranda-langpack-%FileVer%" ..\i18n\langpack_english.txt
+
+goto :eof
+
+:Error
+echo Language pack generation failed
+goto :eof
|