Changeset 9411 for trunk/source/scripts


Ignore:
Timestamp:
May 9, 2008, 7:03:38 AM (11 years ago)
Author:
jaj
Message:

makedmg now deletes fasls and makes a compressed image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/scripts/makedmg

    r9407 r9411  
    22#!/bin/sh
    33#
    4 # Creates a disk image from the current directory
     4# Creates a compresses disk image from the current directory
    55# The resulting dmg file is placed in the parent directory
     6#
     7# This script first deletes any fasl files "*fsl"
    68#
    79# The volume name of the disk image is the final component
     
    1113DIRNAME=${PWD##*/}
    1214
    13 hdiutil create -fs HFS+ -srcfolder . -volname ${DIRNAME} ../${DIRNAME}.dmg
     15find . -name "*fsl" -exec rm -f {} \;
     16hdiutil create -fs HFS+ -srcfolder . -volname ${DIRNAME} ../${DIRNAME}x.dmg
     17hdiutil convert ../${DIRNAME}x.dmg -format UDBZ -o ../${DIRNAME}.dmg
     18rm ../${DIRNAME}x.dmg
Note: See TracChangeset for help on using the changeset viewer.