Created
August 16, 2013 04:35
-
-
Save tomill/6247361 to your computer and use it in GitHub Desktop.
sparsebundle.pl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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