summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Dawes <dobey@gnome.org>2008-09-04 23:25:05 -0400
committerRodney Dawes <dobey@gnome.org>2008-09-04 23:25:05 -0400
commitabb19013a9e5235f99b1c58fc5704c8fafae4928 (patch)
treef901ea1ba5dc7adc4ee54109e020a8e6b7f3df8c
parent38f549b57cbf840172dd4532cda32ec4975303a5 (diff)
2008-09-04 Rodney Dawes <dobey.pwns@gmail.com>
* render-bitmaps.pl (render_icons): Actually handle the output dir argument being passed
-rwxr-xr-xrender-bitmaps.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/render-bitmaps.pl b/render-bitmaps.pl
index a20e7d6..fb3d2c7 100755
--- a/render-bitmaps.pl
+++ b/render-bitmaps.pl
@@ -12,7 +12,7 @@ use Getopt::Long;
my $inkscape = "inkscape";
my $sizeonly;
-my $outdir;
+my $outdir = "";
my $dirall;
############################################################################
@@ -56,7 +56,7 @@ sub render_icons {
foreach my $box (@{$plate->{rect}}) {
if (defined $box->{'inkscape:label'}) {
my $size = $box->{'inkscape:label'};
- my $dir = "$size/$context";
+ my $dir = "$outdir/$size/$context";
next if (defined $sizeonly && $size ne $sizeonly);