summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-10 18:50:35 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-10 18:50:35 +0000
commitc93ec058116d2c607146d8c2c535d6a706144ec9 (patch)
tree602847eefa9941f888cb71ce3b01a515f3c0c5ba
parent60f26cebb602e40d01f89aa74e807005f0990e62 (diff)
Windows line-endings for refresher scripts.
git-svn-id: http://svn.miranda-ng.org/main/trunk@5311 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--langpacks/czech/Refresh.bat36
-rw-r--r--langpacks/slovak/Refresh.bat22
-rw-r--r--tools/lpgen/refresher.bat236
3 files changed, 154 insertions, 140 deletions
diff --git a/langpacks/czech/Refresh.bat b/langpacks/czech/Refresh.bat
index 451839d24f..8b844426af 100644
--- a/langpacks/czech/Refresh.bat
+++ b/langpacks/czech/Refresh.bat
@@ -1,18 +1,18 @@
-@echo off
-
-REM ====== VARIABLES ========
-
-set "language=czech"
-set "oldLangpackPath=Deprecated\old langpack\langpack_czech2.txt"
-
-REM =========================
-
-cd "..\..\tools\lpgen\"
-refresher.bat %language% "%oldLangpackPath%"
-
-REM copy and reload langpack in your Miranda (uncoment next lines + enable cmdline.dll plugin to use it)
- REM echo Copy and refresh Miranda NG langpack
- REM set "mirandaPath=D:\Programy\Miranda NG"
- REM copy "..\..\langpacks\%language%\Langpack_%language%.txt" "%mirandaPath%\Langpack_%language%.txt"
- REM cd "%mirandaPath%"
- REM mimcmd.exe callservice LangPack/Reload 0 0
+@echo off
+
+REM ====== VARIABLES ========
+
+set "language=czech"
+set "oldLangpackPath=Deprecated\old langpack\langpack_czech2.txt"
+
+REM =========================
+
+cd "..\..\tools\lpgen\"
+refresher.bat %language% "%oldLangpackPath%"
+
+REM copy and reload langpack in your Miranda (uncoment next lines + enable cmdline.dll plugin to use it)
+ REM echo Copy and refresh Miranda NG langpack
+ REM set "mirandaPath=D:\Programy\Miranda NG"
+ REM copy "..\..\langpacks\%language%\Langpack_%language%.txt" "%mirandaPath%\Langpack_%language%.txt"
+ REM cd "%mirandaPath%"
+ REM mimcmd.exe callservice LangPack/Reload 0 0
diff --git a/langpacks/slovak/Refresh.bat b/langpacks/slovak/Refresh.bat
index 0c91933c4f..f2af902ebf 100644
--- a/langpacks/slovak/Refresh.bat
+++ b/langpacks/slovak/Refresh.bat
@@ -1,4 +1,18 @@
-@echo off
-
-cd "..\..\tools\lpgen\"
-refresher.bat slovak "Deprecated\Langpack_slovak_old.txt" \ No newline at end of file
+@echo off
+
+REM ====== VARIABLES ========
+
+set "language=slovak"
+set "oldLangpackPath=Deprecated\Langpack_slovak_old.txt"
+
+REM =========================
+
+cd "..\..\tools\lpgen\"
+refresher.bat %language% "%oldLangpackPath%"
+
+REM copy and reload langpack in your Miranda (uncoment next lines + enable cmdline.dll plugin to use it)
+ REM echo Copy and refresh Miranda NG langpack
+ REM set "mirandaPath=D:\Programy\Miranda NG"
+ REM copy "..\..\langpacks\%language%\Langpack_%language%.txt" "%mirandaPath%\Langpack_%language%.txt"
+ REM cd "%mirandaPath%"
+ REM mimcmd.exe callservice LangPack/Reload 0 0
diff --git a/tools/lpgen/refresher.bat b/tools/lpgen/refresher.bat
index 007f063cf4..82b89b7cef 100644
--- a/tools/lpgen/refresher.bat
+++ b/tools/lpgen/refresher.bat
@@ -1,118 +1,118 @@
-@echo off
-cls
-
-echo ========================
-echo Langpack refresher
-echo Author: Robyer
-echo ========================
-echo.
-
-set err=0
-if "%~1" == "" (
- echo ERROR: You must specify language parameter!
- set err=1
-) else (
- set "language=%~1"
-
- if not exist "..\..\langpacks\%language%" (
- echo ERROR: This language doesn't exists!
- set err=1
- goto usage
- )
-)
-
-if not "%~3" == "" (
- echo ERROR: You must specify 1 or 2 parameters only.
- echo NOTE: If you have path with spaces inside, suround it with "".
- set err=1
- goto usage
-)
-
-if not "%~2" == "" (
- set "oldLangpackPath=%~2"
-
- if not exist "..\..\langpacks\%language%\%oldLangpackPath%" (
- echo ERROR: Old langpack file doesn't exists!
- set err=1
- goto usage
- )
-)
-
-:usage
-if "%err%"=="1" (
- echo.
- echo ========================
- echo Usage: refresh.bat language ["old langpack path"]
- echo Note: path to old langpack must be relative to "langpacks\<language>\" folder
- echo.
- echo Example 1: refresh.bat czech
- echo Example 2: refresh.bat czech "Deprecated\old langpack\langpack_czech2.txt"
- echo.
- echo If you want own script in langpack dir, look at "langpacks\czech\refresh.bat"
- echo ========================
- echo.
-
- pause
- goto end
-)
-
-REM =========================
-
-if not "%oldLangpackPath%" == "" (
- set phase=0
-) else (
- set phase=1
-)
-
-echo Refreshing started...
-
-:start
-
-cd "..\..\tools\lpgen\"
-
-mkdir "Plugins"
-mkdir "Untranslated"
-mkdir "Weather"
-
-if "%phase%" == "0" (
- echo Loading strings from old langpack...
- cscript /nologo translate.js /out:".\" /untranslated:"Untranslated" /outfile:"Langpack_%language%.txt" /path:"..\..\langpacks\%language%\" /langpack:"..\..\langpacks\%language%\%oldLangpackPath%"
-) else (
- REM load strings from recently created langpack (also to distribute strings between files) and create final langpack
- cscript /nologo translate.js /out:".\" /untranslated:"Untranslated" /outfile:"Langpack_%language%.txt" /sourcelang:"%language%"
-)
-
-rm -r "../../langpacks/%language%/Weather"
-rm -r "../../langpacks/%language%/Plugins"
-rm -r "../../langpacks/%language%/Untranslated"
-rm -r "../../langpacks/%language%/=CORE=.txt"
-rm -r "../../langpacks/%language%/Langpack_%language%.txt"
-
-mkdir "..\..\langpacks\%language%\Weather"
-mkdir "..\..\langpacks\%language%\Plugins"
-mkdir "..\..\langpacks\%language%\Untranslated"
-copy "Weather\" "..\..\langpacks\%language%\Weather\"
-copy "Plugins\" "..\..\langpacks\%language%\Plugins\"
-copy "Untranslated\" "..\..\langpacks\%language%\Untranslated\"
-copy "=CORE=.txt" "..\..\langpacks\%language%\=CORE=.txt"
-copy "Langpack_%language%.txt" "..\..\langpacks\%language%\Langpack_%language%.txt"
-
-rm -r "Weather"
-rm -r "Plugins"
-rm -r "Untranslated"
-rm "=CORE=.txt"
-rm "Langpack_%language%.txt"
-
-REM cd "..\..\langpacks\tool\"
-REM LangpackSuite.exe \q \p%language%
-
-if not "%phase%" == "1" (
- echo Loading strings from new langpack...
- set "phase=1"
- goto start
-)
-
-:end
-echo Refreshing finished!
-
-REM =========================
+@echo off
+cls
+
+echo ========================
+echo Langpack refresher
+echo Author: Robyer
+echo ========================
+echo.
+
+set err=0
+if "%~1" == "" (
+ echo ERROR: You must specify language parameter!
+ set err=1
+) else (
+ set "language=%~1"
+
+ if not exist "..\..\langpacks\%language%" (
+ echo ERROR: This language doesn't exists!
+ set err=1
+ goto usage
+ )
+)
+
+if not "%~3" == "" (
+ echo ERROR: You must specify 1 or 2 parameters only.
+ echo NOTE: If you have path with spaces inside, suround it with "".
+ set err=1
+ goto usage
+)
+
+if not "%~2" == "" (
+ set "oldLangpackPath=%~2"
+
+ if not exist "..\..\langpacks\%language%\%oldLangpackPath%" (
+ echo ERROR: Old langpack file doesn't exists!
+ set err=1
+ goto usage
+ )
+)
+
+:usage
+if "%err%"=="1" (
+ echo.
+ echo ========================
+ echo Usage: refresh.bat language ["old langpack path"]
+ echo Note: path to old langpack must be relative to "langpacks\<language>\" folder
+ echo.
+ echo Example 1: refresh.bat czech
+ echo Example 2: refresh.bat czech "Deprecated\old langpack\langpack_czech2.txt"
+ echo.
+ echo If you want own script in langpack dir, look at "langpacks\czech\refresh.bat"
+ echo ========================
+ echo.
+
+ pause
+ goto end
+)
+
+REM =========================
+
+if not "%oldLangpackPath%" == "" (
+ set phase=0
+) else (
+ set phase=1
+)
+
+echo Refreshing started...
+
+:start
+
+cd "..\..\tools\lpgen\"
+
+mkdir "Plugins"
+mkdir "Untranslated"
+mkdir "Weather"
+
+if "%phase%" == "0" (
+ echo Loading strings from old langpack...
+ cscript /nologo translate.js /out:".\" /untranslated:"Untranslated" /outfile:"Langpack_%language%.txt" /path:"..\..\langpacks\%language%\" /langpack:"..\..\langpacks\%language%\%oldLangpackPath%"
+) else (
+ REM load strings from recently created langpack (also to distribute strings between files) and create final langpack
+ cscript /nologo translate.js /out:".\" /untranslated:"Untranslated" /outfile:"Langpack_%language%.txt" /sourcelang:"%language%"
+)
+
+rm -r "../../langpacks/%language%/Weather"
+rm -r "../../langpacks/%language%/Plugins"
+rm -r "../../langpacks/%language%/Untranslated"
+rm -r "../../langpacks/%language%/=CORE=.txt"
+rm -r "../../langpacks/%language%/Langpack_%language%.txt"
+
+mkdir "..\..\langpacks\%language%\Weather"
+mkdir "..\..\langpacks\%language%\Plugins"
+mkdir "..\..\langpacks\%language%\Untranslated"
+copy "Weather\" "..\..\langpacks\%language%\Weather\"
+copy "Plugins\" "..\..\langpacks\%language%\Plugins\"
+copy "Untranslated\" "..\..\langpacks\%language%\Untranslated\"
+copy "=CORE=.txt" "..\..\langpacks\%language%\=CORE=.txt"
+copy "Langpack_%language%.txt" "..\..\langpacks\%language%\Langpack_%language%.txt"
+
+rm -r "Weather"
+rm -r "Plugins"
+rm -r "Untranslated"
+rm "=CORE=.txt"
+rm "Langpack_%language%.txt"
+
+REM cd "..\..\langpacks\tool\"
+REM LangpackSuite.exe \q \p%language%
+
+if not "%phase%" == "1" (
+ echo Loading strings from new langpack...
+ set "phase=1"
+ goto start
+)
+
+:end
+echo Refreshing finished!
+
+REM =========================