Mercurial > hg > easyhg
annotate deploy/osx/deploy.sh @ 249:123e06d5d9af
* If the hgignore file doesn't exist when the user asks to edit it, create it with a "syntax: glob" line
author | Chris Cannam |
---|---|
date | Tue, 11 Jan 2011 17:56:22 +0000 |
parents | 41ae9544a255 |
children | f649f6066e4d |
rev | line source |
---|---|
Chris@232 | 1 #!/bin/bash |
Chris@232 | 2 |
Chris@232 | 3 # Execute this from the top-level directory of the project (the one |
Chris@232 | 4 # that contains the .app bundle). |
Chris@232 | 5 |
Chris@232 | 6 app=EasyMercurial |
Chris@232 | 7 |
Chris@232 | 8 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` |
Chris@232 | 9 bundleVersion="$version".0 |
Chris@232 | 10 |
Chris@232 | 11 echo |
Chris@232 | 12 echo "Writing version $bundleVersion in to bundle." |
Chris@232 | 13 echo "(This should be a three-part number: major.minor.point)" |
Chris@232 | 14 |
Chris@232 | 15 perl -p -e "s/EASYHG_VERSION/$bundleVersion/" deploy/osx/Info.plist \ |
Chris@232 | 16 > "$app".app/Contents/Info.plist |
Chris@232 | 17 |
Chris@232 | 18 echo "Done: check $app.app for sanity please" |
Chris@232 | 19 |
Chris@232 | 20 echo |
Chris@232 | 21 echo "Making dmg..." |
Chris@232 | 22 |
Chris@232 | 23 hdiutil create -srcfolder "$app".app "$app"-"$version".dmg -volname "$app"-"$version" |
Chris@232 | 24 |
Chris@232 | 25 echo "Done" |