source: subversion/applications/share/map-icons/copy_icons_to_dir.sh @ 6809

Last change on this file since 6809 was 6505, checked in by joerg, 12 years ago

map-icons: rename thumbnail directories to _png

  • Property svn:executable set to *
File size: 548 bytes
Line 
1#!/bin/sh
2
3dst=$1
4
5if [ ! -n "$dst" ] ; then
6    echo "Please specify a destination directory"
7    echo "Usage:"
8    echo "     $0 <destination-dir>"
9    exit -1
10fi
11
12mkdir -p $dst
13for dir in square.big square.small classic.big classic.small svg svg_png japan japan_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 
25done
26
Note: See TracBrowser for help on using the repository browser.