Merge branch 'tgit-22'
[TortoiseGit.git] / Languages / build-lang.cmd
blob72c31626cec3f3bae20e5fc72094a35018c65998
1 @echo off
2 if [%1] == [] goto missingparam
3 rem strip quotes
4 set OUTDIR=%~1
5 rem strip trailing baskslash
6 if %OUTDIR:~-1%==\ set OUTDIR=%OUTDIR:~0,-1%
7 set CLEAN=
8 if [%2]==[clean] set CLEAN="clean"
10 call :nmake 1026 bg
11 call :nmake 1027 ca
12 call :nmake 1028 zh_TW
13 call :nmake 1029 cs
14 call :nmake 1030 da
15 call :nmake 1031 de
16 call :nmake 1034 es
17 call :nmake 1035 fi
18 call :nmake 1036 fr
19 call :nmake 1038 hu
20 call :nmake 1040 it
21 call :nmake 1041 ja
22 call :nmake 1042 ko
23 call :nmake 1043 nl
24 call :nmake 1045 pl
25 call :nmake 1046 pt_BR
26 call :nmake 1048 ro
27 call :nmake 1049 ru
28 call :nmake 1051 sk
29 call :nmake 1053 sv
30 call :nmake 1055 tr
31 call :nmake 1057 id
32 call :nmake 1058 uk
33 call :nmake 1066 vi
34 call :nmake 2052 zh_CN
35 call :nmake 2070 pt_PT
36 call :nmake 2074 sr@latin
37 goto :eof
39 :nmake
40 nmake /nologo /f Makefile %CLEAN% "outdir=%OUTDIR%" LANGID=%1 ISO=%2
41 goto :eof
43 :missingparam
44 echo Missing parameter:
45 echo %~nx0 [output path]
46 pause