OpenTTD/os/dos/make_dos_binary_selfcontained.sh
matthijs e25844cdf2 (svn r25780) -Change: [DOS] Put cwsdpmi and exe2coff files in subdirectories.
- Since these are different components, distributed under a different
    license, mixing them in the same directory is confusing.
2013-09-19 07:42:13 +00:00

12 lines
249 B
Bash
Executable file

#!/bin/sh
# $Id$
cd `dirname $0`
cc -o exe2coff/exe2coff exe2coff/exe2coff.c || exit
cp $1 binary.exe || exit
./exe2coff/exe2coff binary.exe || exit
cat cwsdpmi/cwsdstub.exe binary > binary.exe || exit
mv binary.exe $1
rm binary exe2coff/exe2coff