@echo off
del *.com
del gag.asm
del messages.msg

copy .\src\gag.asm .\gag.asm

copy .\src\bable\messages.msg .\
copy .\src\bable\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com bable.com

copy .\src\brazilia\messages.msg .\
copy .\src\brazilia\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com brazilia.com

copy .\src\catalan\messages.msg .\
copy .\src\catalan\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com catalan.com

copy .\src\czech\messages.msg .\
copy .\src\czech\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com czech.com

copy .\src\danish\messages.msg .\
copy .\src\danish\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com danish.com

copy .\src\dutch\messages.msg .\
copy .\src\dutch\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com dutch.com

copy .\src\english\messages.msg .\
copy .\src\english\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com english.com

copy .\src\espanol\messages.msg .\
copy .\src\espanol\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com espanol.com

copy .\src\euskera\messages.msg .\
copy .\src\euskera\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com euskera.com

copy .\src\french\messages.msg .\
copy .\src\french\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com french.com

copy .\src\galego\messages.msg .\
copy .\src\galego\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com galego.com

copy .\src\german\messages.msg .\
copy .\src\german\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com german.com

copy .\src\hungar\messages.msg .\
copy .\src\hungar\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com hungar.com

copy .\src\italian\messages.msg .\
copy .\src\italian\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com italian.com

copy .\src\japan\messages.msg .\
copy .\src\japan\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com japan.com

copy .\src\norwe\messages.msg .\
copy .\src\norwe\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com norwe.com

copy .\src\polish\messages.msg .\
copy .\src\polish\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com polish.com

copy .\src\portugal\messages.msg .\
copy .\src\portugal\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com portugal.com

copy .\src\rusian\messages.msg .\
copy .\src\rusian\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com rusian.com

copy .\src\swedish\messages.msg .\
copy .\src\swedish\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com swedish.com

copy .\src\turkish\messages.msg .\
copy .\src\turkish\font.fnt .\
tasm gag.asm
tlink /t gag.obj
del *.obj
del *.map
del messages.msg
del font.fnt
ren gag.com turkish.com

tasm src\boot.asm
tlink /t boot.obj
tasm src\install.asm
tlink /t install.obj

tasm src\hdboot.asm
tlink /t hdboot.obj

del *.obj
del *.map
del gag.asm

@echo on
