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

Last change on this file since 3947 was 3947, checked in by joerg, 13 years ago

preserve date and permissions while copying

  • Property svn:executable set to *
File size: 478 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_tn jp jp_tn ; do \
14    find  $dir -type d | grep -v '\.svn' | \
15    while read nd ; do 
16        mkdir -p $dst/$nd 
17    done 
18
19    find $dir -name "*.svg" -o -name "*.png" | \
20    while read fn ; do 
21        cp -p $fn $dst/$fn
22    done 
23done
24
Note: See TracBrowser for help on using the repository browser.