add --mixbus package option
authorRobin Gareus <robin@gareus.org>
Mon, 5 Jan 2015 02:05:01 +0000 (03:05 +0100)
committerRobin Gareus <robin@gareus.org>
Mon, 5 Jan 2015 02:05:01 +0000 (03:05 +0100)
tools/x-win/package.sh

index 69acb188b8b637ece30d35e67be8275fd0177c7a..092b639a3e997eb9e5ccff54b583f4f4e6ab4fb9 100755 (executable)
@@ -12,12 +12,26 @@ test -f gtk2_ardour/wscript || exit 1
 : ${TMPDIR=/var/tmp}
 : ${SRCDIR=/var/tmp/winsrc}  # source-code tgz cache
 
-# TODO: add variant switches here or grep from build/config.log
+# TODO: grep from build/config.log instead
+while [ $# -gt 0 ] ; do
+       echo "arg = $1"
+       case $1 in
+               --mixbus)
+                       MIXBUS=1
+                       shift ;;
+       esac
+done
+
 # see also wscript, video_tool_paths.cc, bundle_env_mingw.cc
 PROGRAM_NAME=Ardour
 PRODUCT_NAME=ardour
 PROGRAM_VERSION=3
 
+if test -n "$MIXBUS"; then
+       PROGRAM_NAME=Mixbus
+       PRODUCT_NAME=mixbus
+fi
+
 # derived variables
 PRODUCT_ID=${PRODUCT_NAME}${PROGRAM_VERSION}
 PRODUCT_EXE=${PRODUCT_NAME}.exe
@@ -217,8 +231,20 @@ InstallDirRegKey HKLM "Software\\${PROGRAM_NAME}\\${PRODUCT_ID}\\$WARCH" "Instal
 
 EOF
 
-# TODO: add project speficic finish/welcome page
-cat >> $NSISFILE << EOF
+if test -n "$MIXBUS"; then
+
+# TODO: proper welcome/finish text.
+       cat >> $NSISFILE << EOF
+!define MUI_FINISHPAGE_TITLE "Welcome to Mixbus"
+!define MUI_FINISHPAGE_TEXT "Thank you for choosing Harrison Mixbus."
+!define MUI_FINISHPAGE_LINK "Harrison Consoles Website"
+!define MUI_FINISHPAGE_LINK_LOCATION "http://harrisonconsoles.com"
+!define MUI_FINISHPAGE_NOREBOOTSUPPORT
+EOF
+
+else
+
+       cat >> $NSISFILE << EOF
 !define MUI_FINISHPAGE_TITLE "Welcome to Ardour"
 !define MUI_FINISHPAGE_TEXT "This windows versions or Ardour is provided as-is.\$\\r\$\\nThe ardour community currently has no expertise in supporting windows users, and there are no developers focusing on windows specific issues either.\$\\r\$\\nIf you like Ardour, please consider helping out."
 !define MUI_FINISHPAGE_LINK "Ardour Manual"
@@ -228,6 +254,8 @@ cat >> $NSISFILE << EOF
 !define MUI_FINISHPAGE_NOREBOOTSUPPORT
 EOF
 
+fi
+
 cat >> $NSISFILE << EOF
 !define MUI_ABORTWARNING
 !insertmacro MUI_PAGE_LICENSE "share\\COPYING"