diff options
Diffstat (limited to 'mk-release-os2')
-rw-r--r-- | mk-release-os2 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mk-release-os2 b/mk-release-os2 new file mode 100644 index 0000000..f20ef1c --- /dev/null +++ b/mk-release-os2 @@ -0,0 +1,32 @@ +#!/bin/sh +set -e +WARPIN="d:\prg\WarpIN" +DLLPATH="d:\prg\emx\dll" +DLLS="bz2.dll cryptssl.dll jpeg.dll lzma.dll png.dll open_ssl.dll z.dll" +FILES="AUTHORS BRAILLE_HOWTO COPYING KEYS README links.exe" +CC="gcc.exe" +export CC +CFLAGS="-Wall -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -O2 -pipe -ansi -U__STRICT_ANSI__ -fno-common" +export CFLAGS +rc -r linksos2.rc linksos2.res +if [ ! -f Makefile -o ! -f config.h ]; then + LIBS=linksos2.res + export LIBS + bash ./configure --enable-graphics --without-x --disable-utf8 --disable-debuglevel +fi +make +emxbind -a links.exe -h192 + +for i in $DLLS; do + cp "$DLLPATH\\$i" . +done + +rm -f links.wpi +cmd /c set BEGINLIBPATH="$WARPIN" \& "$WARPIN\wic.exe" -a links.wpi 1 $FILES $DLLS -s links.wis + +rm -rf links links.zip +mkdir links +cp $FILES $DLLS links +pkzip /Add /Recurse /Path /NoExtended links.zip links\\ +rm -rf links +rm $DLLS |