comparison tools/makeinst-script.sh.in @ 4658:213da5688be0

update binary dist rules * binary-dist-rules.mk: Use -w64, -w32, or -w64-64 suffix for Windows binary distributions. New target for creating .7z files. * tools/makeinst-script.sh.in: New arg for name of installer file.
author John W. Eaton <jwe@octave.org>
date Thu, 12 Apr 2018 12:09:22 -0400
parents 2f14bc0c6d0c
children 12bfaba26c8d
comparison
equal deleted inserted replaced
4657:871355b33950 4658:213da5688be0
1 #! /bin/bash 1 #! /bin/bash
2 set -e 2 set -e
3 3
4 if [ $# != 2 ]; then 4 if [ $# != 3 ]; then
5 echo "usage: makeinst-script.sh dist-dir output-script-name" 1>&2 5 echo "usage: makeinst-script.sh dist-dir installer-name output-script-name" 1>&2
6 exit 1 6 exit 1
7 fi 7 fi
8 8
9 OUTFILE="$2" 9 INSTALLER_NAME="$2"
10 OUTFILE="$3"
10 TOPDIR=@abs_top_srcdir@ 11 TOPDIR=@abs_top_srcdir@
11 TOP_BUILD_DIR=@abs_top_builddir@ 12 TOP_BUILD_DIR=@abs_top_builddir@
12
13 ENABLE64="@ENABLE_WINDOWS_64@"
14 13
15 OCTAVE_SOURCE=`basename $1` 14 OCTAVE_SOURCE=`basename $1`
16 15
17 cd `dirname $1` 16 cd `dirname $1`
18 MXEDIR=`cd ..; pwd` 17 MXEDIR=`cd ..; pwd`
45 !define VERSION "$VERSION.0" 44 !define VERSION "$VERSION.0"
46 !define OCTAVE_VERSION "$OCTAVE_VERSION" 45 !define OCTAVE_VERSION "$OCTAVE_VERSION"
47 !define COPYRIGHT "Copyright © 2013-2018 John W. Eaton and others." 46 !define COPYRIGHT "Copyright © 2013-2018 John W. Eaton and others."
48 !define DESCRIPTION "GNU Octave is a high-level programming language, primarily intended for numerical computations." 47 !define DESCRIPTION "GNU Octave is a high-level programming language, primarily intended for numerical computations."
49 !define INSTALLER_FILES "$TOPDIR/installer-files" 48 !define INSTALLER_FILES "$TOPDIR/installer-files"
50 !define INSTALLER_NAME "octave-$OCTAVE_VERSION-installer.exe" 49 !define INSTALLER_NAME "$INSTALLER_NAME"
51 !define MAIN_APP_EXE "octave-firsttime.vbs" 50 !define MAIN_APP_EXE "octave-firsttime.vbs"
52 !define INSTALL_TYPE "SetShellVarContext current" 51 !define INSTALL_TYPE "SetShellVarContext current"
53 !define PRODUCT_ROOT_KEY "HKLM" 52 !define PRODUCT_ROOT_KEY "HKLM"
54 !define PRODUCT_KEY "Software\\Octave-$VERSION" 53 !define PRODUCT_KEY "Software\\Octave-$VERSION"
55 54