|
Last change
on this file since 36406 was 21967, checked in by bastik, 15 years ago |
|
initial version
|
-
Property svn:executable
set to
*
|
|
File size:
459 bytes
|
| Line | |
|---|
| 1 | #!/usr/bin/perl
|
|---|
| 2 | use strict;
|
|---|
| 3 | use warnings;
|
|---|
| 4 |
|
|---|
| 5 | use Getopt::Std;
|
|---|
| 6 |
|
|---|
| 7 | my %val;
|
|---|
| 8 | getopts('h:', \%val);
|
|---|
| 9 |
|
|---|
| 10 | # helper script to convert svg file to png and move them to the right place
|
|---|
| 11 | #
|
|---|
| 12 | # usage:
|
|---|
| 13 | # cd plugins/roadsigns/images_src/
|
|---|
| 14 | # ./convert.pl -h 36 foo.svg
|
|---|
| 15 |
|
|---|
| 16 | my $h = $val{"h"};
|
|---|
| 17 | if (!$h) {
|
|---|
| 18 | $h = "40";
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | foreach my $i (0..$#ARGV) {
|
|---|
| 22 | my $f = $ARGV[$i];
|
|---|
| 23 | my $f2 = $f;
|
|---|
| 24 | $f2 =~ s/\.svg$/.png/;
|
|---|
| 25 | system("inkscape", "-f", $f, "-e", "../images/$f2", "-h", "$h");
|
|---|
| 26 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.