~scarneiro/ubuntu/oneiric/gosmore/fix-for-770751

« back to all changes in this revision

Viewing changes to map-icons/svg-twotone/generatecategoryicons.sh

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2010-07-12 11:24:32 UTC
  • mfrom: (1.1.3 upstream) (5.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100712112432-bkedaz1rdx1cp2a8
Tags: 0.0.0.20100711-1
* New upstream snapshot fetched for svn, revision: 22284
  This version introduces changes for compatibility with recent gpsd
  versions and protocols. Thanks Bernd Zeimetz.
* Policy bumped to 3.9.0. No changes.
* Now build system uses autoconf.
* Added new libcurl4-gnutls-dev build-dep.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
TYPES=(             'accommodation' 'amenity' 'education' 'food'    'health'  'landuse' 'money'   'place_of' 'poi'     'shopping' 'sport'   'tourist' 'transport' )
 
4
FORGROUND_COLOURS=( '#0092DA'       '#734A08' '#ffffff'   '#0092DA' '#ffffff' '#999999' '#ffffff' '#000000' '#000000'  '#ffffff'  '#39AC39' '#ffffff' '#ffffff' )
 
5
BACKGROUND_COLOURS=('none'          'none'    '#39AC39'   'none'    '#DA0092' 'none'    '#000000' 'none'     'none'    '#AC39AC'  'none'    '#734A08' '#0092DA')
 
6
SIZES=(32 24 20)
 
7
 
 
8
for (( i = 0 ; i < ${#TYPES[@]} ; i++ )) do
 
9
 
 
10
  FOLDERNAME=${TYPES[i]}
 
11
 
 
12
  FOLDERNAME='recoloured'
 
13
  mkdir ${FOLDERNAME}
 
14
 
 
15
  for FILE in ${TYPES[i]}_*.svg; do
 
16
    for (( j = 0 ; j < ${#SIZES[@]} ; j++ )) do
 
17
      ./recolourtopng.sh ${FILE} ${BACKGROUND_COLOURS[i]} ${BACKGROUND_COLOURS[i]} ${FORGROUND_COLOURS[i]} ${SIZES[j]} ${FOLDERNAME}/${FILE%.*}.${SIZES[j]}
 
18
    done
 
19
    ./recolour.sh ${FILE} ${BACKGROUND_COLOURS[i]} ${BACKGROUND_COLOURS[i]} ${FORGROUND_COLOURS[i]} > ${FOLDERNAME}/${FILE%.*}.svg
 
20
  done
 
21
 
 
22
done