summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Dawes <dobey@gnome.org>2008-09-04 22:57:58 -0400
committerRodney Dawes <dobey@gnome.org>2008-09-04 22:57:58 -0400
commitfa76e237b6860daf7d3740553c0409a8e525e898 (patch)
tree385edee057325c7820cb2540d68e064be38c2a8f
parentf619c6f6158c7059e85ca520ceab36894571eb2b (diff)
2008-09-04 Rodney Dawes <dobey.pwns@gmail.com>
* render-bitmaps.pl (render_icons): Print a status message to stdout for feedback (main): Check that the filename ends in svg[z] before passing to render_icons()
-rwxr-xr-xrender-bitmaps.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/render-bitmaps.pl b/render-bitmaps.pl
index cb6b1a9..a20e7d6 100755
--- a/render-bitmaps.pl
+++ b/render-bitmaps.pl
@@ -64,6 +64,7 @@ sub render_icons {
system ("mkdir -p $dir");
}
my $cmd = "$inkscape -i $box->{id} -e $dir/$name.png $filename > /dev/null";
+ print "Rendering $dir/$name.png...\n";
system ($cmd);
}
}
@@ -94,7 +95,7 @@ if (defined $ARGV[0]) {
foreach my $file (@filelist) {
next if ($file eq "." || $file eq "..");
- render_icons ("$dirall/$file");
+ render_icons ("$dirall/$file") if ($file =~ m/^(.*).svg[z]?$/);
}
} else {
usage ();