X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=win32%2Fmkpackage.sh.in;fp=win32%2Fmkpackage.sh.in;h=0000000000000000000000000000000000000000;hp=4a760d8b45de33a3b54756c6dc950446d2b1e151;hb=0b8dbc2d02c7f78d273ad9cfdf05c927c648ffd1;hpb=6c47a7028f7c72fabc40f417aa41111c28de8a84 diff --git a/win32/mkpackage.sh.in b/win32/mkpackage.sh.in deleted file mode 100644 index 4a760d8..0000000 --- a/win32/mkpackage.sh.in +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh - -# -# Yoink -# Run this script to create a win32 installer. -# This was blatantly yoinked and adapted from the Wormux Project. -# - -# Paths -SCRIPT="$PWD/yoink.nsi" -BUILD_DIR="$PWD/build" -ROOT_DIR="$PWD/.." - -# Programs -MAKENSIS="@MAKENSIS@" -STRIP="@STRIP@" -UNIX2DOS="$ROOT_DIR/tools/unix2dos" - -# DLL dependencies -DLLS="libogg-0 libpng14-14 libvorbis-0 libvorbisfile-3 lua51 OpenAL32 SDL zlib1" - -# Prepare -rm -rf "$BUILD_DIR" -mkdir -p "$BUILD_DIR" - -cp -f "$ROOT_DIR/src/yoink.exe" "$BUILD_DIR" -#"${STRIP:-strip}" "$BUILD_DIR/yoink.exe" - -for dll in $DLLS -do - cp -f "@prefix@/bin/$dll.dll" "$BUILD_DIR" - #"${STRIP:-strip}" "BUILD_DIR/$dll.dll" -done - -cd "$ROOT_DIR" -for asset in @DATA_FILES@ -do - cp -f --parents "data/$asset" "$BUILD_DIR" -done - -cd "$ROOT_DIR" -for doc in AUTHORS ChangeLog COPYING README TODO -do - "$UNIX2DOS" "$doc" "$BUILD_DIR/$doc.txt" -done - -cd "$ROOT_DIR/doc" -cp -rf licenses "$BUILD_DIR" - -cd "$BUILD_DIR/licenses" -for license in $(ls) -do - mv "$license" "$license.txt" - "$UNIX2DOS" "$license.txt" -done - - -# -# Compile the installer and cleanup. -#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -if ! "${MAKENSIS:-makensis}" "$SCRIPT" -then - echo "makensis failed, aborting..." - exit 1 -fi - -#rm -rf "$BUILD_DIR" -