From: fredrik Date: Wed, 31 Jan 2007 18:16:27 +0000 (+0000) Subject: Add imgck. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=bd024d6083c3f5b91e16f84bb34f306b72337567;p=utils.git Add imgck. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@841 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/cdtool b/cdtool index 769cf19..44f4f87 100755 --- 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: $!";