File: makecmd.bat

package info (click to toggle)
dosemu-freedos 1%3A0.0.b9r5a%2Betch.1-0etch1
  • links: PTS
  • area: contrib
  • in suites: etch
  • size: 19,744 kB
  • ctags: 23,279
  • sloc: ansic: 143,864; asm: 20,397; makefile: 3,868; perl: 1,106; yacc: 690; sh: 553; pascal: 297; xml: 150; cpp: 67
file content (31 lines) | stat: -rw-r--r-- 1,057 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
: Copyright (C) Bernd Blaauw
: Creates localized FreeCOM-versions depending on which language files
: are available in the current directory
if "%1"=="continue" goto loop
set languages=EN English NL Dutch ES Spanish DE German FR French IT Italian PTR PT_BR RU Russian Ser Serbian YUG YU437  
call %0 continue %languages%
goto end

:loop
shift
if "%1"=="" goto end
if "%lang%"=="%1" goto compile
if exist %1.lng del %1.lng
shift
goto loop
goto end

:compile
if "%2"=="" goto end
for %%x in ( command.cln xmsswap.cln fixstrs.exe default.lng %2.lng ) do if not exist %%x goto end
fixstrs %2.lng
copy /b command.cln + strings.dat command.com
copy /b xmsswap.cln + strings.dat xmsswap.com
if exist strings.err echo Translation file out of date for language %2 [file: %2.lng]!
if exist strings.log echo Translation file out of date for language %2 [file: %2.lng]!
if exist strings.dat del strings.dat
if exist strings.h   del strings.h
goto end
:end
if "%lang%"=="" echo Warning: nothing done due to LANG variable not set