Changeset 16006 in josm for trunk/scripts/geticons.pl
- Timestamp:
- 2020-03-03T02:12:44+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/geticons.pl
r13857 r16006 4 4 5 5 my @default = ( 6 "styles/standard/*.xml", 7 "styles/standard/*.mapcss", 8 "data/*.xml", 6 "resources/styles/standard/*.xml", 7 "resources/styles/standard/*.mapcss", 8 "resources/data/*.xml", 9 9 "src/org/openstreetmap/josm/*.java", 10 10 "src/org/openstreetmap/josm/*/*.java", … … 134 134 my %haveicons; 135 135 136 for($i = 1; my @ifiles = (glob("images".("/*" x $i).".png"), glob("images".("/*" x $i).".svg")); ++$i) 136 for($i = 1; my @ifiles = (glob("resources/images".("/*" x $i).".png"), glob("resources/images".("/*" x $i).".svg")); ++$i) 137 137 { 138 138 for my $ifile (sort @ifiles) 139 139 { 140 $ifile =~ s/^images\///; 140 $ifile =~ s/^resources\/images\///; 141 141 # svg comes after png due to the glob, so only check for svg's 142 142 if($ifile =~ /^(.*)\.svg$/) … … 147 147 } 148 148 # check for unwanted svg effects 149 if(open FILE, "<","images/$ifile") 149 if(open FILE, "<","resources/images/$ifile") 150 150 { 151 151 undef $/; … … 181 181 if($img =~ /\.(png|svg)/) 182 182 { 183 print STDERR "$img: File does not exist!\n" if(!-f "images/$img"); 183 print STDERR "$img: File does not exist!\n" if(!-f "resources/images/$img"); 184 184 delete $haveicons{$img}; 185 185 } 186 186 else 187 187 { 188 print STDERR "$img(.svg|.png): File does not exist!\n" if(!-f "images/$img.png" && !-f "images/$img.svg"); 188 print STDERR "$img(.svg|.png): File does not exist!\n" if(!-f "resources/images/$img.png" && !-f "resources/images/$img.svg"); 189 189 delete $haveicons{"$img.svg"}; 190 190 delete $haveicons{"$img.png"};
Note:
See TracChangeset
for help on using the changeset viewer.