Changeset 16006 in josm for trunk/scripts
- Timestamp:
- 2020-03-03T02:12:44+01:00 (5 years ago)
- Location:
- trunk/scripts
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/BuildProjectionDefinitions.java
r14638 r16006 31 31 public final class BuildProjectionDefinitions { 32 32 33 private static final String PROJ_DIR = " data_nodist/projection";33 private static final String PROJ_DIR = "nodist/data/projection"; 34 34 private static final String JOSM_EPSG_FILE = "josm-epsg"; 35 35 private static final String PROJ4_EPSG_FILE = "epsg"; 36 36 private static final String PROJ4_ESRI_FILE = "esri"; 37 private static final String OUTPUT_EPSG_FILE = " data/projection/custom-epsg";37 private static final String OUTPUT_EPSG_FILE = "resources/data/projection/custom-epsg"; 38 38 39 39 private static final Map<String, ProjectionDefinition> epsgProj4 = new LinkedHashMap<>(); -
trunk/scripts/TagInfoExtract.java
r15988 r16006 208 208 final Path f = baseDir.resolve("images").resolve(path); 209 209 if (Files.exists(f)) { 210 return "https://josm.openstreetmap.de/export/" + josmSvnRevision + "/josm/trunk/ images/" + path;210 return "https://josm.openstreetmap.de/export/" + josmSvnRevision + "/josm/trunk/resources/images/" + path; 211 211 } 212 212 throw new IllegalStateException("Cannot find image url for " + path); … … 226 226 .add("description", description) 227 227 .add("project_url", "https://josm.openstreetmap.de/") 228 .add("icon_url", "https://josm.openstreetmap.de/export/7770/josm/trunk/ images/logo_16x16x8.png")228 .add("icon_url", "https://josm.openstreetmap.de/export/7770/josm/trunk/resources/images/logo_16x16x8.png") 229 229 .add("contact_name", "JOSM developer team") 230 230 .add("contact_email", "josm-dev@openstreetmap.org"); -
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"}; -
trunk/scripts/optimize-images
r15916 r16006 1 1 #!/bin/sh 2 2 3 find images/ -name "*.png" \3 find resources/images/ -name "*.png" \ 4 4 -exec echo "Processing {}" \; \ 5 5 -exec optipng -o7 -quiet "{}" \;
Note:
See TracChangeset
for help on using the changeset viewer.