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

« back to all changes in this revision

Viewing changes to map-icons/tools/copy_icons_to_dir.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/sh
 
2
 
 
3
dst=$1
 
4
 
 
5
if [ ! -n "$dst" ] ; then
 
6
    echo "Please specify a destination directory"
 
7
    echo "Usage:"
 
8
    echo "     $0 <destination-dir>"
 
9
    exit -1 
 
10
fi
 
11
 
 
12
mkdir -p $dst
 
13
for dir in square.big square.small classic.big classic.small svg svg-png japan japan-png svg-twotone svg-twotone-png; do \
 
14
    # Create directories
 
15
    find  $dir -type d | grep -v '/\.svn' | \
 
16
    while read nd ; do 
 
17
        mkdir -p $dst/$nd 
 
18
    done 
 
19
 
 
20
    # Copy Files
 
21
    find $dir -name "*.svg" -o -name "*.png" | grep -v "/.svn/" | \
 
22
    while read fn ; do 
 
23
        cp -p $fn $dst/$fn
 
24
    done 
 
25
done
 
26