Add imgck.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 31 Jan 2007 18:16:27 +0000 (18:16 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Wed, 31 Jan 2007 18:16:27 +0000 (18:16 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@841 959494ce-11ee-0310-bf91-de5d638817bd

cdtool

diff --git a/cdtool b/cdtool
index 769cf19..44f4f87 100755 (executable)
--- a/cdtool
+++ b/cdtool
@@ -199,6 +199,13 @@ if($cmd eq "add") {
     $curgraft =~ s,/+$,,;
 } elsif($cmd eq "setimg") {
     $curimage = shift @ARGV;
+} elsif($cmd eq "imgck") {
+    readimage $image;
+    for $file (values %img) {
+       if(! -r $file) {
+           print "$file\n";
+       }
+    }
 } elsif($cmd eq "mkiso") {
     readimage $image;
     open(ISO, "|-", "mkisofs", "-J", "-R", "-V", "$imgname r$rev", "-graft-points", "-path-list", "-") || die "mkisofs: $!";