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

Last change on this file since 11689 was 11607, checked in by joerg, 11 years ago

map-icons/tools: move all scripts into there own tools directory

File size: 872 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 svg-twotone svg-twotone-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.