Update of /cvsroot/audacity/audacity-src/scripts In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv14356
Modified Files: mac_release_build Log Message: Build dmg directly, pull manual, and create zip. Index: mac_release_build =================================================================== RCS file: /cvsroot/audacity/audacity-src/scripts/mac_release_build,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- mac_release_build 1 Jun 2008 14:53:25 -0000 1.4 +++ mac_release_build 30 Nov 2009 23:36:11 -0000 1.5 @@ -27,7 +27,62 @@ cd mac xcodebuild -configuration 'Release Static' cd .. -make -C locale -scripts/mkdmg $1 $2 +# Setup +VERSION=`awk '/^#define+ AUDACITY_VERSION / {print $3}' src/Audacity.h` +RELEASE=`awk '/^#define+ AUDACITY_RELEASE / {print $3}' src/Audacity.h` +REVISION=`awk '/^#define+ AUDACITY_REVISION / {print $3}' src/Audacity.h` + +if [ ! -z "$SUFFIX" ] +then + SUFFIX="-$SUFFIX" +fi + +VERSION=$VERSION.$RELEASE.$REVISION$SUFFIX + +VOL="Audacity $VERSION" +DMG="audacity-macosx-ub-$VERSION" + +# Preclean +rm -rf "$DMG" "$DMG.dmg" TMP.dmg + +# Create structure +mkdir "$DMG" + +# Copy directories +SUBDIRS="Audacity.app Languages nyquist plug-ins modules" +for SUBDIR in $SUBDIRS +do + cp -pR "mac/build/Release Static/$SUBDIR" "$DMG" +done + +# Retrieve and Copy help +cd scripts/mw2html_audacity +./wiki2htm.sh +cd ../.. +mkdir "$DMG/help" +mv "help/manual" "$DMG/help/" + +# Strip binary +strip "$DMG/Audacity.app/Contents/MacOS/"* + +# Install misc files +cp -pR README.txt LICENSE.txt "$DMG" + +# Create and mount the image +hdiutil create -ov -srcdir "$DMG" -fs HFS+ -volname "$VOL" TMP.dmg + +# Compress and prepare for Internet delivery +hdiutil convert TMP.dmg -format UDZO -imagekey zlib-level=9 -o "$DMG.dmg" +hdiutil internet-enable -yes "$DMG.dmg" + +# Cleanup +rm TMP.dmg + +# Move DMG to parent mv *.dmg .. + +# Create the zip version +zip -r9 "../$DMG.zip" "$DMG" + +exit ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs