Skip to content

Commit

Permalink
Fixing #1358
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 27, 2007
1 parent bc0850c commit 585446c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildDMG.pl
Expand Up @@ -136,8 +136,8 @@
# Now we start our work...

# create the dmg
print "> hdiutil create \"$buildDir/$dmgName\" -ov -megabytes $volSize -fs HFS+ -volname \"$volName\"\n" if $debug;
$output = `hdiutil create \"$buildDir/$dmgName\" -ov -megabytes $volSize -fs HFS+ -volname \"$volName\"`;
print "> hdiutil create \"$buildDir/$dmgName\" -layout SPUD -ov -megabytes $volSize -fs HFS+ -volname \"$volName\"\n" if $debug;
$output = `hdiutil create \"$buildDir/$dmgName\" -layout SPUD -ov -megabytes $volSize -fs HFS+ -volname \"$volName\"`;
die "FATAL: Couldn't create dmg $dmgName (Error: $?)\nIs it possibly mounted?\n" if $?;

($dmgName) = ($output =~ /created\s*:\s*(?:.*?$buildDir\/)?(.+?)\s*$/m);
Expand All @@ -150,7 +150,7 @@
$output = `hdiutil attach \"$buildDir/$dmgName\"`;
die "FATAL: Couldn't mount DMG $dmgName (Error: $?)\n" if $?;

my ($dev) = ($output =~ /(\/dev\/.+?)\s*GUID_partition_scheme/im);
my ($dev) = ($output =~ /(\/dev\/.+?)\s*Apple_partition_scheme/im);
my ($dest) = ($output =~ /Apple_HFS\s+(.+?)\s*$/im);

# copy the files onto the dmg
Expand Down

0 comments on commit 585446c

Please sign in to comment.