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