os/dos/make_dos_binary_selfcontained.sh
author rubidium
Wed, 17 Dec 2008 23:12:35 +0000
changeset 10435 849b45cca2e4
parent 10385 4f9838649c7f
permissions -rwxr-xr-x
(svn r14688) -Change: silence the "command not found" error when trying to find the svn/git/hg binary.
10385
4f9838649c7f (svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium
parents:
diff changeset
     1
#!/bin/sh
4f9838649c7f (svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium
parents:
diff changeset
     2
4f9838649c7f (svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium
parents:
diff changeset
     3
cd `dirname $0`
4f9838649c7f (svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium
parents:
diff changeset
     4
cc -o exe2coff exe2coff.c || exit
4f9838649c7f (svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium
parents:
diff changeset
     5
cp $1 binary.exe || exit
4f9838649c7f (svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium
parents:
diff changeset
     6
./exe2coff binary.exe || exit
4f9838649c7f (svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium
parents:
diff changeset
     7
cat cwsdstub.exe binary > binary.exe || exit
4f9838649c7f (svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium
parents:
diff changeset
     8
mv binary.exe $1
4f9838649c7f (svn r14636) -Add: DOS port of OpenTTD, without network support though.
rubidium
parents:
diff changeset
     9
rm binary exe2coff