mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Set the revision mechanism independent from the VCS name
This commit is contained in:
parent
62f1ed054b
commit
eb7a85b8f9
10 changed files with 44 additions and 44 deletions
|
|
@ -88,9 +88,9 @@ if test x$STRIP != xall -a x$STRIP != xnone -a x$STRIP != xsome ; then
|
|||
fi
|
||||
|
||||
release_version=`grep -m 1 '[^A-Za-z_]LINUX_VERSION = ' ../../wscript | awk '{ print $3 }' | sed "s/'//g"`
|
||||
svn_version=`grep -m 1 'svn_revision =' ../../libs/ardour/svn_revision.cc | cut -d'"' -f 2`
|
||||
echo "Version is $release_version / $svn_version"
|
||||
info_string="$release_version/$svn_version built on `hostname` by `whoami` on `date`"
|
||||
revision=`grep -m 1 'revision =' ../../libs/ardour/revision.cc | cut -d'"' -f 2`
|
||||
echo "Version is $release_version / $revision"
|
||||
info_string="$release_version/$revision built on `hostname` by `whoami` on `date`"
|
||||
echo "Info string is $info_string"
|
||||
|
||||
# Figure out our CPU type
|
||||
|
|
@ -131,11 +131,11 @@ fi
|
|||
# setup directory structure
|
||||
|
||||
if [ -z "${BUILDTYPE}" ]; then
|
||||
APPDIR=${APPNAME}_${ARCH}-${release_version}_${svn_version}
|
||||
APP_VER_NAME=${APPNAME}-${release_version}_${svn_version}
|
||||
APPDIR=${APPNAME}_${ARCH}-${release_version}_${revision}
|
||||
APP_VER_NAME=${APPNAME}-${release_version}_${revision}
|
||||
else
|
||||
APPDIR=${APPNAME}_${ARCH}-${release_version}_${svn_version}-${BUILDTYPE}
|
||||
APP_VER_NAME=${APPNAME}-${release_version}_${svn_version}-${BUILDTYPE}
|
||||
APPDIR=${APPNAME}_${ARCH}-${release_version}_${revision}-${BUILDTYPE}
|
||||
APP_VER_NAME=${APPNAME}-${release_version}_${revision}-${BUILDTYPE}
|
||||
fi
|
||||
|
||||
APPBIN=$APPDIR/bin
|
||||
|
|
@ -535,7 +535,7 @@ done
|
|||
#
|
||||
# Add the uninstaller
|
||||
#
|
||||
sed -e "s/%REPLACE_PGM%/${APPNAME}/" -e "s/%REPLACE_VENDOR%/${VENDOR}/" -e "s/%REPLACE_VERSION%/${release_version}/" -e "s/%REPLACE_BUILD%/${svn_version}/" -e "s/%REPLACE_TYPE%/${BUILDTYPE}/" < uninstall.sh.in > $APPBIN/${APP_VER_NAME}.uninstall.sh
|
||||
sed -e "s/%REPLACE_PGM%/${APPNAME}/" -e "s/%REPLACE_VENDOR%/${VENDOR}/" -e "s/%REPLACE_VERSION%/${release_version}/" -e "s/%REPLACE_BUILD%/${revision}/" -e "s/%REPLACE_TYPE%/${BUILDTYPE}/" < uninstall.sh.in > $APPBIN/${APP_VER_NAME}.uninstall.sh
|
||||
chmod a+x $APPBIN/${APP_VER_NAME}.uninstall.sh
|
||||
|
||||
#Sanity Check file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue