os/dos/make_dos_binary_selfcontained.sh
author rubidium
Wed, 26 Nov 2008 13:12:45 +0000
changeset 10385 4f9838649c7f
permissions -rwxr-xr-x
(svn r14636) -Add: DOS port of OpenTTD, without network support though.
#!/bin/sh

cd `dirname $0`
cc -o exe2coff exe2coff.c || exit
cp $1 binary.exe || exit
./exe2coff binary.exe || exit
cat cwsdstub.exe binary > binary.exe || exit
mv binary.exe $1
rm binary exe2coff