Mercurial > backup
view simple-cd-backup.pl @ 8:e736b9aaf5ad
various attempts to do multisession burning; giving up for now.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 25 Feb 2013 13:30:46 +0000 |
parents | |
children | 07bb57b65da1 |
line wrap: on
line source
1 #!/bin/perl2 use File::Basename;4 $tmp_iso="/home/r/tmp/image.iso";6 @graft_points = ("-graft-points");8 for $graft_point(@ARGV){9 push(@graft_points, basename($graft_point) . "=" . $graft_point);10 }12 @create_iso_command = ("mkisofs", "-iso-level", "4", "-r", "-J", "-T");14 @create_iso_command = (@create_iso_command, "-o", $tmp_iso, @graft_points);17 @remove_previous_iso_command = ("rm", "-f", $tmp_iso);18 print "@remove_previous_iso_command\n";19 system(@remove_previous_iso_command);21 print "@create_iso_command\n";22 system(@create_iso_command);24 print "Created $tmp_iso.\n";25 print "Use burn-tmp-iso-image to write to CD.\n";