summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-03-08 00:32:35 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-03-08 00:32:35 +0000
commit757d2cad8f3f75c420ad2e462b787cd9cf8a7a62 (patch)
treee68a780d9afd61caedc6c56da5fc029000e80835 /tools
parent4744bd907e6750c26bba4354d986e342406147ca (diff)
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@80 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testosx14
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/testosx b/tools/testosx
index 98891cb25..9193b8a3d 100755
--- a/tools/testosx
+++ b/tools/testosx
@@ -3,7 +3,7 @@
if test ! -f tools/testosx; then
echo "Run this script from the top-level CUPS source directory, e.g.:"
echo ""
- echo " tools/testosx"
+ echo " tools/testosx [version]"
echo ""
exit 1
fi
@@ -11,6 +11,12 @@ fi
# Get the current working copy version...
rev=`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[a-zA-Z]*//g'`
+if test $# = 0; then
+ version="1.2svn-r$rev"
+else
+ version=$1
+fi
+
# Setup an install directory...
user=`whoami`
topdir=`pwd`
@@ -57,10 +63,10 @@ fi
chmod 755 $pkgdir/Resources/postflight
# Tag the current revision in the plist and web interface files...
-sed -e '1,$s/@CUPS_VERSION@/1.2svn-r'$rev'/g' \
+sed -e '1,$s/@CUPS_VERSION@/'$version'/g' \
-e '1,$s/@CUPS_RELEASE@/1.2.'$rev'/g' \
<packaging/cups-desc.plist.in >packaging/cups-desc.plist
-sed -e '1,$s/@CUPS_VERSION@/1.2svn-r'$rev'/g' \
+sed -e '1,$s/@CUPS_VERSION@/'$version'/g' \
-e '1,$s/@CUPS_RELEASE@/1.2.'$rev'/g' \
<packaging/cups-info.plist.in >packaging/cups-info.plist
@@ -91,7 +97,7 @@ $PackageMaker -build -v -p cups.pkg \
# Create a disk image...
echo Creating MacOS X disk image...
-hdiutil create -ov -srcfolder cups.pkg cups-1.2svn-r$rev.dmg
+hdiutil create -ov -srcfolder cups.pkg cups-$version.dmg
# Cleanup temp files...
echo Removing temporary files...