From 335c7b25a7ba3c6d1889b0e48edf5768de79d355 Mon Sep 17 00:00:00 2001 From: jiho-sf Date: Sun, 17 Feb 2008 22:51:00 +0000 Subject: [PATCH] - Added system version to the name of the dmg - corrected syntax for the last test, to open the Finder window when a package or dmg is produced --- packaging/macosx/osx-build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packaging/macosx/osx-build.sh b/packaging/macosx/osx-build.sh index 0356d413f..dfe365290 100755 --- a/packaging/macosx/osx-build.sh +++ b/packaging/macosx/osx-build.sh @@ -267,7 +267,8 @@ fi # Fetch some information REVISION=`head -n 4 ../../.svn/entries | tail -n 1` ARCH=`arch | tr [p,c] [P,C]` -NEWNAME="Inkscape-$REVISION-$ARCH" +MINORVERSION=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d \.` +NEWNAME="Inkscape-$REVISION-10.$MINORVERSION-$ARCH" DMGFILE="$NEWNAME.dmg" INFOFILE="$NEWNAME-info.txt" @@ -285,7 +286,7 @@ then # Prepare information file echo "Version information on $DATE for `whoami`: - OS X `/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d \:` + OS X `/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d \:` Architecture $ARCH DarwinPorts `port version | cut -f2 -d \ ` GCC `gcc --version | grep GCC` @@ -321,7 +322,7 @@ then fi fi -if [[ "$PACKAGE" == "t" ]] | [[ "$DISTRIB" == "t" ]]; then +if [[ "$PACKAGE" == "t" || "$DISTRIB" == "t" ]]; then # open a Finder window here to admire what we just produced open . fi -- 2.30.2