source: subversion/applications/share/map-icons/create_osm.sh @ 10274

Last change on this file since 10274 was 6884, checked in by ulf, 12 years ago

copy over the existing icon hierarchy into something "map features" like - using an XSLT transformation of JOSM's elemstyles.xml to create a "copy shell script"

File size: 845 bytes
Line 
1#!/bin/sh
2#
3# copy over the icons into an "OSM map features" like hierarchy
4#
5# the icons are currently sorted in a directory hierarchy that is based on gpsdrive
6# this script copies the icons into a hierachy that is much closer to the current "OSM map features" tagging
7#
8# what you'll need:
9# xsltproc from the (cygwin) libxslt package
10
11# go through the directory "themes" we're interested in
12for dir in classic.big classic.small square.big square.small svg_png ; do \
13        # keep the user informed
14        echo +++ $dir +++
15       
16        # XSLT transformation of JOSM's elemstyles.xml file into a simple shell script
17        xsltproc --param src_dir "'$dir'" --param dest_dir "'osm/$dir'" create_osm.xslt ../../editors/josm/core/styles/standard/elemstyles.xml > create_osm.tmp.sh
18
19        # call generated shell script to copy icons into new hierarchy
20        ./create_osm.tmp.sh
21done
Note: See TracBrowser for help on using the repository browser.