when moving tempo and metric sections around (or adding new ones), prevent the existe...
[ardour.git] / libs / rubberband / repopulate
1 #!/bin/sh
2
3 #
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
7 #
8
9 from=$1
10 #strip=`dirname $1`
11 strip=$1
12
13 echo "Looking for copies in $from ... will strip $strip"
14
15 for file in `find $from \( -name \*.cpp -o -name \*.h -o -name \*.c \)`
16 do
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
27   fi
28 done