os/dos/make_dos_binary_selfcontained.sh
author rubidium
Sat, 29 Nov 2008 01:28:13 +0000
changeset 10390 0c2cc4c7b91f
parent 10385 4f9838649c7f
permissions -rwxr-xr-x
(svn r14641) -Change [Allegro]: when making a debug build revert Allegro's hooks on SIGSEGV/SIGABRT so one can actually use gdb.
-Change: make it more clear that Allegro's failing to find a driver.
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