From 009f5df967c48ffca4dbdf98dd3cbe671bfe3728 Mon Sep 17 00:00:00 2001 From: JiHO Date: Sat, 12 May 2007 22:13:22 +0000 Subject: - new parameters in the info file accompanying the dmg - the dmg bundle is named with the latest revision and the architecture. The svn revision number is taken from the entries file at the base of Inkscape's source code tree rather than through svn info to allow people without svn to use osx-build.sh (on a prepackaged svn snapshot for example) (bzr r3010) --- packaging/macosx/osx-build.sh | 49 ++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 22 deletions(-) (limited to 'packaging') diff --git a/packaging/macosx/osx-build.sh b/packaging/macosx/osx-build.sh index f1fbb93dd..92a43d99b 100755 --- a/packaging/macosx/osx-build.sh +++ b/packaging/macosx/osx-build.sh @@ -253,6 +253,12 @@ fi if [[ "$DISTRIB" == "t" ]] then + REVISION=`head -n 4 ../../.svn/entries | tail -n 1` + ARCH=`arch | tr [p,c] [P,C]` + NEWNAME="Inkscape-$REVISION-$ARCH" + DMGFILE="$NEWNAME.dmg" + INFOFILE="$NEWNAME-info.txt" + # Create dmg bundle if [[ "$PYTHON" == "t" ]]; then ./osx-dmg.sh -py "$PYTHONDIR" @@ -265,30 +271,29 @@ then exit $status fi - DATE=`date "+%Y%m%d"` - mv Inkscape.dmg Inkscape_$DATE.dmg + mv Inkscape.dmg $DMGFILE # Prepare information file -# INFOFILE=Inkscape_$DATE-info.txt -# echo "Version information on $DATE for `whoami`: -# OS X `/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d \:` -# DarwinPorts `port version | cut -f2 -d \ ` -# GCC `gcc --version | grep GCC` -# GTK `pkg-config --modversion gtk+-2.0` -# GTKmm `pkg-config --modversion gtkmm-2.4` -# Cairo `pkg-config --modversion cairo` -# Cairomm `pkg-config --modversion cairomm-1.0` -# CairoPDF `pkg-config --modversion cairo-pdf` -# Pango `pkg-config --modversion pango` -# Configure options: -# $CONFFLAGS" > $INFOFILE -# if [[ "$STRIP" == "t" ]]; then -# echo "Debug info -# no" >> $INFOFILE -# else -# echo "Debug info -# yes" >> $INFOFILE -# fi + echo "Version information on $DATE for `whoami`: + OS X `/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d \:` + Architecture $ARCH + DarwinPorts `port version | cut -f2 -d \ ` + GCC `gcc --version | grep GCC` + GTK `pkg-config --modversion gtk+-2.0` + GTKmm `pkg-config --modversion gtkmm-2.4` + Cairo `pkg-config --modversion cairo` + Cairomm `pkg-config --modversion cairomm-1.0` + CairoPDF `pkg-config --modversion cairo-pdf` + Pango `pkg-config --modversion pango` +Configure options: + $CONFFLAGS" > $INFOFILE + if [[ "$STRIP" == "t" ]]; then + echo "Debug info + no" >> $INFOFILE + else + echo "Debug info + yes" >> $INFOFILE + fi # open a Finder window here open . -- cgit v1.2.3