Mercurial > backup
diff crvft/simple-cd-backup.pl @ 19:e2bef5c2dc28
move cruft.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 23 May 2013 22:52:01 -0400 |
parents | simple-cd-backup.pl@07bb57b65da1 |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/crvft/simple-cd-backup.pl Thu May 23 22:52:01 2013 -0400 1.3 @@ -0,0 +1,23 @@ 1.4 +#!/bin/perl 1.5 +use File::Basename; 1.6 + 1.7 +@graft_points = ("-graft-points"); 1.8 + 1.9 +for $graft_point(@ARGV){ 1.10 + push(@graft_points, basename($graft_point) . "=" . $graft_point); 1.11 +} 1.12 + 1.13 +@create_iso_command = ("mkisofs", "-iso-level", "4", "-r", "-J", "-T"); 1.14 + 1.15 +@create_iso_command = (@create_iso_command, "-o", $tmp_iso, @graft_points); 1.16 + 1.17 + 1.18 +@remove_previous_iso_command = ("rm", "-f", $tmp_iso); 1.19 +print "@remove_previous_iso_command\n"; 1.20 +system(@remove_previous_iso_command); 1.21 + 1.22 +print "@create_iso_command\n"; 1.23 +system(@create_iso_command); 1.24 + 1.25 +print "Created $tmp_iso.\n"; 1.26 +print "Use burn-tmp-iso-image to write to CD.\n";