fix up file renaming code a little bit
[ArdourMidi.git] / libs / rubberband / repopulate
blob5a5ca263f6cb1f930adc8b8b2d87ed1c3d945a03
1 #!/bin/sh
4 # this script copies the relevant files from $1 into this
5 # working copy of the repository, adds new files and
6 # prints a list of mods for SConscript
9 from=$1
10 #strip=`dirname $1`
11 strip=$1
13 echo "Looking for copies in $from ... will strip $strip"
15 for file in `find $from \( -name \*.cpp -o -name \*.h -o -name \*.c \)`
17 src=$file
18 copy=`echo $file | sed "s?$strip/??"`
19 echo "Look for $copy"
20 if [ -f $copy ] ; then
21 cp $src $copy
22 echo "copy $copy"
23 else
24 echo "ADD $copy"
25 cp $src $copy
26 svn add $copy
28 done