Changeset 33841 in osm for applications/editors/josm/i18n/convwiki.pl
- Timestamp:
- 2017-11-20T16:29:04+01:00 (9 years ago)
- File:
-
- 1 edited
-
applications/editors/josm/i18n/convwiki.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/convwiki.pl
r33756 r33841 32 32 if($name =~ /^(.*?)([^\/]+-preset\.xml)$/) 33 33 { 34 system "mv $name$name.orig";34 system "mv \"$name\" \"$name.orig\""; 35 35 my ($path, $xmlname) = ($1, $2); 36 my $res = `xmllint --format --schema ../core/data/tagging-preset.xsd $name.orig --encode utf-8 --output $name2>&1`;36 my $res = `xmllint --format --schema ../core/data/tagging-preset.xsd \"$name.orig\" --encode utf-8 --output \"$name\" 2>&1`; 37 37 print $res if $res !~ /\.orig validates/; 38 system "perl convpreset.pl $name >${path}trans_$xmlname";38 system "perl convpreset.pl \"$name\" >\"${path}trans_$xmlname\""; 39 39 unlink "$name.orig"; 40 40 } 41 41 elsif($name =~ /^(.*?)([^\/]+-style\.xml$)/) 42 42 { 43 system "perl convstyle.pl $name>${1}trans_$2";43 system "perl convstyle.pl \"$name\" >${1}trans_$2"; 44 44 } 45 45 elsif($name =~ /^(.*?)([^\/]+\.mapcss)$/) 46 46 { 47 system "perl convcss.pl $name>${1}trans_$2";47 system "perl convcss.pl \"$name\" >${1}trans_$2"; 48 48 } 49 49 else 50 50 { 51 die "Unknown file type $name.";51 die "Unknown file type \"$name\"."; 52 52 } 53 53 unlink $name;
Note:
See TracChangeset
for help on using the changeset viewer.
