Changeset 16006 in josm for trunk/scripts


Ignore:
Timestamp:
2020-03-03T02:12:44+01:00 (5 years ago)
Author:
Don-vip
Message:

see #18140 - reorganization of data(_nodist), images(_nodist), styles(_nodist), IDE and native files in a more practical file tree.

  • Everything belonging to the jar is now in resources (data, images, styles)
  • Everything not belonging to the jar is now in nodist (data, images, styles)
  • Everything related to OS native functions is now in native (linux, macosx, windows)
  • Everything related to an IDE is now in ide (eclipse, netbeans)
Location:
trunk/scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/BuildProjectionDefinitions.java

    r14638 r16006  
    3131public final class BuildProjectionDefinitions {
    3232
    33     private static final String PROJ_DIR = "data_nodist/projection";
     33    private static final String PROJ_DIR = "nodist/data/projection";
    3434    private static final String JOSM_EPSG_FILE = "josm-epsg";
    3535    private static final String PROJ4_EPSG_FILE = "epsg";
    3636    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";
    3838
    3939    private static final Map<String, ProjectionDefinition> epsgProj4 = new LinkedHashMap<>();
  • trunk/scripts/TagInfoExtract.java

    r15988 r16006  
    208208            final Path f = baseDir.resolve("images").resolve(path);
    209209            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;
    211211            }
    212212            throw new IllegalStateException("Cannot find image url for " + path);
     
    226226                        .add("description", description)
    227227                        .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")
    229229                        .add("contact_name", "JOSM developer team")
    230230                        .add("contact_email", "josm-dev@openstreetmap.org");
  • trunk/scripts/geticons.pl

    r13857 r16006  
    44
    55my @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",
    99  "src/org/openstreetmap/josm/*.java",
    1010  "src/org/openstreetmap/josm/*/*.java",
     
    134134my %haveicons;
    135135
    136 for($i = 1; my @ifiles = (glob("images".("/*" x $i).".png"), glob("images".("/*" x $i).".svg")); ++$i)
     136for($i = 1; my @ifiles = (glob("resources/images".("/*" x $i).".png"), glob("resources/images".("/*" x $i).".svg")); ++$i)
    137137{
    138138  for my $ifile (sort @ifiles)
    139139  {
    140     $ifile =~ s/^images\///;
     140    $ifile =~ s/^resources\/images\///;
    141141    # svg comes after png due to the glob, so only check for svg's
    142142    if($ifile =~ /^(.*)\.svg$/)
     
    147147      }
    148148      # check for unwanted svg effects
    149       if(open FILE, "<","images/$ifile")
     149      if(open FILE, "<","resources/images/$ifile")
    150150      {
    151151        undef $/;
     
    181181  if($img =~ /\.(png|svg)/)
    182182  {
    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");
    184184    delete $haveicons{$img};
    185185  }
    186186  else
    187187  {
    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");
    189189    delete $haveicons{"$img.svg"};
    190190    delete $haveicons{"$img.png"};
  • trunk/scripts/optimize-images

    r15916 r16006  
    11#!/bin/sh
    22
    3 find images/ -name "*.png" \
     3find resources/images/ -name "*.png" \
    44  -exec echo "Processing {}" \; \
    55  -exec optipng -o7 -quiet "{}" \;
Note: See TracChangeset for help on using the changeset viewer.