source: trunk/source/scripts/makedmg @ 13537

Last change on this file since 13537 was 12919, checked in by rme, 10 years ago

Get rid of leading blank line. Fixes ticket:603.

  • Property svn:executable set to *
File size: 554 bytes
Line 
1#!/bin/sh
2#
3# Creates a compresses disk image from the current directory
4# The resulting dmg file is placed in the parent directory
5#
6# This script first deletes any fasl files "*fsl"
7#
8# The volume name of the disk image is the final component
9# of the current directory name.
10# The file name is the same with ".dmg" appended.
11
12DIRNAME=${PWD##*/}
13
14find . -name "*fsl" -exec rm -f {} \;
15hdiutil create -fs HFS+ -srcfolder . -volname ${DIRNAME} ../${DIRNAME}x.dmg
16hdiutil convert ../${DIRNAME}x.dmg -format UDBZ -o ../${DIRNAME}.dmg
17rm ../${DIRNAME}x.dmg
Note: See TracBrowser for help on using the repository browser.