Skip to content

Instantly share code, notes, and snippets.

@tomill
Created August 16, 2013 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomill/6247361 to your computer and use it in GitHub Desktop.
Save tomill/6247361 to your computer and use it in GitHub Desktop.
sparsebundle.pl
#!/usr/bin/env perl
use strict;
use warnings;
my $prj = shift || die "$0 project-name";
system('hdiutil', 'create',
-size => '50g',
-type => 'SPARSEBUNDLE',
-fs => "Case-sensitive Journaled HFS+",
-volname => $prj,
-verbose => "$ENV{HOME}/$prj.sparsebundle",
) and die $!;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment