source: releases/ICeCoffEE/1.3.2b1/package-ICeCoffEE.sh@ 674

Last change on this file since 674 was 78, checked in by Nicholas Riley, 22 years ago

Remove Subversion cruft during packaging

File size: 1.1 KB
Line 
1#!/bin/sh
2
3set -x -v
4
5PACKAGEDIR="$PWD"
6PRODUCT="ICeCoffEE"
7
8cd "$PRODUCT" && \
9find . -name \*~ -exec rm '{}' \; && \
10VERSION=`cat VERSION` && \
11DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" MOUNTPOINT="/Volumes/$VOL" && \
12DSTROOT="$PACKAGEDIR/$VOL" && \
13sudo rm -fr "$DSTROOT" && \
14sudo rm -rf build/ && \
15rm -rf build/ && \
16pbxbuild install -target "ICeCoffEE Installer" "DSTROOT=$DSTROOT" && \
17sudo rm -rf build/ && \
18mv "$DSTROOT/$PRODUCT Installer.app" "$DSTROOT/$PRODUCT $VERSION Installer.app" && \
19find "$DSTROOT" -name ".svn" -exec sudo /bin/rm -rf "{}" \; ; \
20cd "$PACKAGEDIR" && \
21rm -f "$DMG" && \
22hdiutil create "$DMG" -megabytes 5 -ov -type UDIF && \
23DISK=`hdid -nomount "$DMG" | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
24newfs_hfs -v "$VOL" "/dev/r${DISK}s2" && \
25hdiutil eject "$DISK" && \
26hdid "$DMG" && \
27ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
28chmod -R a+rX,u+w "$MOUNTPOINT" && \
29openUp "$MOUNTPOINT" && \
30hdiutil eject $DISK && \
31hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
32mv "z$DMG" "$DMG" && \
33hdiutil internet-enable "$DMG" && \
34scp "$DMG" ainaz:web/nriley/software/
35:
36
Note: See TracBrowser for help on using the repository browser.