Changeset 13277 in josm for trunk/geticons.pl
- Timestamp:
- 2018-01-04T16:00:01+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geticons.pl
r10566 r13277 23 23 for my $file (glob($arg)) 24 24 { 25 my @defs; 25 26 open(FILE,"<",$file) or die "Could not open $file\n"; 26 27 #print "Read file $file\n"; … … 29 30 while(my $l = <FILE>) 30 31 { 32 if($l =~ /private static final String ([A-Z_]+) = ("[^"]+")/) 33 { 34 push(@defs, [$1, $2]); 35 } 31 36 next if $l =~ /NO-ICON/; 37 for my $d (@defs) 38 { 39 $l =~ s/$d->[0]/$d->[1]/g; 40 } 32 41 if($l =~ /icon\s*[:=]\s*["']([^"'+]+?)["']/) 33 42 { … … 122 131 ++$icons{$i}; 123 132 } 124 if($l =~ /setButtonIcons.*\{(.*)\}/ )133 if($l =~ /setButtonIcons.*\{(.*)\}/ || $l =~ /setButtonIcons\((.*)\)/ ) 125 134 { 126 135 my $t = $1;
Note: See TracChangeset
for help on using the changeset viewer.