fix version detection in OSX build script

This commit is contained in:
Robin Gareus 2013-04-30 17:45:22 +02:00
parent d54a35a671
commit 0b8712268e
1 changed files with 7 additions and 3 deletions

View File

@ -62,9 +62,13 @@ while [ $# -gt 0 ] ; do
esac
done
#release_version=`grep -m 1 '[^A-Za-z_]OSX_VERSION = ' ../../wscript | cut -d' ' -f 3 | sed "s/'//g"`
release_version=3.0
revision=`grep -m 1 'revision =' ../../libs/ardour/revision.cc | cut -d' ' -f 8 | sed 's/[^0-9]//g'`
if test -z "$PRODUCT_PKG_DIR" -o -z "$APPNAME"; then
echo "application or product-name was not specified"
exit 1
fi
release_version=`grep -m 1 '[^A-Za-z_]OSX_VERSION = ' ../../wscript | cut -d"'" -f2`
revision=`grep -m 1 'revision =' ../../libs/ardour/revision.cc | cut -d'"' -f 2 | sed 's/^.*-//g'`
echo "Version is $release_version / $revision"
info_string="$release_version/$revision built on `hostname` by `whoami` on `date`"
echo "Info string is $info_string"