3
### Script to create a win32 installer file
4
### 20090510 Stelios Bounanos M0GLD, Dave Freese W1HKJ
6
### change for the target application
11
echo "Syntax: $0 data-dir build-dir" >&2
15
if [ -z "$PACKAGE_TARNAME" ]; then
16
echo "E: \$PACKAGE_TARNAME undefined"
25
for d in "$data" "$build"; do
26
test -d "$d" && continue
27
echo "E: ${d}: not a directory" >&2
30
if ! test -w "$build"; then
31
echo "E: ${build} is not writeable" >&2
37
test "x$NOSTRIP" = "x" && $STRIP -S "$FLRIG_bin"
38
def="-DFLRIG_NAME=$FLRIG_name -DFLRIG_BINARY=$FLRIG_bin -DFLRIG_VERSION=$PACKAGE_VERSION"
40
$MAKENSIS -V2 -NOCD -D"INSTALLER_FILE=$INSTALLER_FILE" -D"LICENSE_FILE=$data/../COPYING" \
41
-D"SUPPORT_URL=$PACKAGE_HOME" -D"UPDATES_URL=$PACKAGE_DL" $def "$data/win32/fl_app.nsi"