diff options
| author | JiHO <jiho-sf@users.sourceforge.net> | 2007-05-12 22:13:22 +0000 |
|---|---|---|
| committer | jiho-sf <jiho-sf@users.sourceforge.net> | 2007-05-12 22:13:22 +0000 |
| commit | 009f5df967c48ffca4dbdf98dd3cbe671bfe3728 (patch) | |
| tree | b6b7d640bc4e339448b6a50fad51f54944536329 | |
| parent | -added some checks for the existence of Inkscape.app and a better way to chec... (diff) | |
| download | inkscape-009f5df967c48ffca4dbdf98dd3cbe671bfe3728.tar.gz inkscape-009f5df967c48ffca4dbdf98dd3cbe671bfe3728.zip | |
- 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)
| -rwxr-xr-x | packaging/macosx/osx-build.sh | 49 |
1 files changed, 27 insertions, 22 deletions
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 . |
