summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-03-09 13:50:49 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-03-09 13:50:57 -0500
commit3c7b468c026d1ca772ad92fe5911838206f3f254 (patch)
tree355f2ae15c098c377716464e26e44bee828c0b31 /tools
parent2198d692cc771978303b6b74a23d441e2e0f308a (diff)
more work to remove hard coding of major version number for linux packaging
Diffstat (limited to 'tools')
-rwxr-xr-xtools/linux_packaging/build7
-rwxr-xr-xtools/linux_packaging/stage2.run.in2
2 files changed, 8 insertions, 1 deletions
diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build
index 3d88076441..1d92befd8f 100755
--- a/tools/linux_packaging/build
+++ b/tools/linux_packaging/build
@@ -643,6 +643,13 @@ fi
sed -e "s/%REPLACE_PGM%/${APPNAME}/" -e "s/%REPLACE_VENDOR%/${VENDOR}/" -e "s/%REPLACE_MAJOR_VERSION%/${major_version}/" -e "s/%REPLACE_VERSION%/${release_version}/" -e "s/%REPLACE_TYPE%/${BUILDTYPE}/" < uninstall.sh.in > $APPBIN/${APP_VER_NAME}.uninstall.sh
chmod a+x $APPBIN/${APP_VER_NAME}.uninstall.sh
+#
+# Add the stage2.run script
+#
+sed -e "s/%REPLACE_MAJOR_VERSION%/${major_version}/" < stage2.run.in > stage2.run
+chmod a+x stage2.run
+
+
#Sanity Check file
if [ -e $BUILD_ROOT/tools/sanity_check/sanityCheck ]; then
cp $BUILD_ROOT/tools/sanity_check/sanityCheck $APPBIN
diff --git a/tools/linux_packaging/stage2.run.in b/tools/linux_packaging/stage2.run.in
index 061edeb6cc..847f9eccc6 100755
--- a/tools/linux_packaging/stage2.run.in
+++ b/tools/linux_packaging/stage2.run.in
@@ -8,7 +8,7 @@
#
###################################
-MAJOR_VERSION=3
+MAJOR_VERSION="%REPLACE_MAJOR_VERSION%"
PGM_NAME="Ardour"
PGM_VENDOR="Ardour"