1#!/bin/sh 2 3### Script to create a win32 installer file 4### 20090510 Stelios Bounanos M0GLD, Dave Freese W1HKJ 5 6### change for the target application 7fllog_name=fllog 8fllog_bin=fllog.exe 9 10if [ $# -ne 2 ]; then 11 echo "Syntax: $0 data-dir build-dir" >&2 12 exit 1 13fi 14 15if [ -z "$PACKAGE_TARNAME" ]; then 16 echo "E: \$PACKAGE_TARNAME undefined" 17 exit 1 18fi 19 20PWD=`pwd` 21data="${PWD}/$1" 22build="${PWD}/$2" 23 24# more sanity checks 25for d in "$data" "$build"; do 26 test -d "$d" && continue 27 echo "E: ${d}: not a directory" >&2 28 exit 1 29done 30if ! test -w "$build"; then 31 echo "E: ${build} is not writeable" >&2 32 exit 1 33fi 34 35set -e 36 37def="-Dfllog_NAME=$fllog_name -Dfllog_BINARY=$fllog_bin -Dfllog_VERSION=$PACKAGE_VERSION" 38 39$MAKENSIS -V2 -NOCD -D"INSTALLER_FILE=$INSTALLER_FILE" -D"LICENSE_FILE=$data/../COPYING" \ 40 -D"SUPPORT_URL=$PACKAGE_HOME" -D"UPDATES_URL=$PACKAGE_DL" $def "$data/win32/fl_app.nsi" 41