diff options
author | Rodney Dawes <dobey@gnome.org> | 2008-09-09 10:23:19 -0400 |
---|---|---|
committer | Rodney Dawes <dobey@gnome.org> | 2008-09-09 10:23:19 -0400 |
commit | 069a09d6ef17741332f3aa289a26aa6b91e39223 (patch) | |
tree | 67fd9b26d19589ec703faec70c14aab60fdbe28c | |
parent | 2ee352bb7c0b98d985c0608579b67b7aa6f69f04 (diff) |
2008-09-09 Rodney Dawes <dobey.pwns@gmail.com>
* render-bitmaps.pl.in:
if the output directory was passed in, make sure it ends with a /
(render_icons):
Remove the / between $outdir and $size in the declaration of $dir
-rw-r--r-- | render-bitmaps.pl.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render-bitmaps.pl.in b/render-bitmaps.pl.in index 2c75712..17eaa75 100644 --- a/render-bitmaps.pl.in +++ b/render-bitmaps.pl.in @@ -27,7 +27,7 @@ GetOptions ("size|s=s" => \$sizeonly, ############################################################################ -use Data::Dumper; +$outdir =~ s|[/]?$|/|g if ($outdir ne ""); sub render_icons { my $filename = shift; @@ -69,7 +69,7 @@ sub render_icons { foreach my $box (@{$plate->{rect}}) { if (defined $box->{'inkscape:label'}) { my $size = $box->{'inkscape:label'}; - my $dir = "$outdir/$size/$context"; + my $dir = "$outdir$size/$context"; # Skip this box if the size isn't the requested size next if (defined $sizeonly && $size ne $sizeonly); |