Backout the make-diskimage changes from bug 287262, since they are causing problems on seamonkey tinderbox "barcelona". r+a=chase

This commit is contained in:
bsmedberg%covad.net 2005-05-18 14:19:36 +00:00
Родитель 7cf88079e3
Коммит d114be217e
1 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -50,8 +50,6 @@
# tip: use '-null-' for <eula-resource-file> if you only want to # tip: use '-null-' for <eula-resource-file> if you only want to
# provide <.dsstore_file> and <background_image_file> # provide <.dsstore_file> and <background_image_file>
set -e;
DMG_DIRNAME=`dirname $1` DMG_DIRNAME=`dirname $1`
DMG_DIR=`cd $DMG_DIRNAME; pwd` DMG_DIR=`cd $DMG_DIRNAME; pwd`
DMG_NAME=`basename $1` DMG_NAME=`basename $1`
@ -80,14 +78,13 @@ echo IMAGE_SIZE=$IMAGE_SIZE
# Create the image # Create the image
echo "creating disk image" echo "creating disk image"
rm -f $DMG_TEMP_NAME
hdiutil create -sectors $IMAGE_SIZE -fs HFS+ $DMG_TEMP_NAME -volname $VOLUME_NAME hdiutil create -sectors $IMAGE_SIZE -fs HFS+ $DMG_TEMP_NAME -volname $VOLUME_NAME
# mount it # mount it
echo "mounting disk image" echo "mounting disk image"
MOUNT_DIR=dmg-temp # `hdid -nomount rw.$DMG_NAME | grep "^/dev/disk.s2" | sed -e "s?^/dev/??" -e "s/[^0-9a-z].*//"`
mkdir -p $MOUNT_DIR DEV_NAME=`hdid $DMG_TEMP_NAME | sed 1q | awk '{print $1}'`
DEV_NAME=`hdiutil attach -readwrite -private -noautoopen -mountpoint $MOUNT_DIR $DMG_TEMP_NAME | egrep '^/dev/' | sed 1q | awk '{print $1}'` MOUNT_DIR=`hdid $DMG_TEMP_NAME | grep Apple_HFS | awk '{print $3}'`
# copy content via ditto # copy content via ditto
# #
@ -115,7 +112,7 @@ fi
# make sure it's not world writeable # make sure it's not world writeable
echo "fixing permissions" echo "fixing permissions"
chmod -R go-w ${MOUNT_DIR} || true chmod -R go-w ${MOUNT_DIR}
# make the top window open itself on mount: # make the top window open itself on mount:
if [ -x /usr/local/bin/openUp ]; then if [ -x /usr/local/bin/openUp ]; then