blob: 5a5ca263f6cb1f930adc8b8b2d87ed1c3d945a03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
#
# this script copies the relevant files from $1 into this
# working copy of the repository, adds new files and
# prints a list of mods for SConscript
#
from=$1
#strip=`dirname $1`
strip=$1
echo "Looking for copies in $from ... will strip $strip"
for file in `find $from \( -name \*.cpp -o -name \*.h -o -name \*.c \)`
do
src=$file
copy=`echo $file | sed "s?$strip/??"`
echo "Look for $copy"
if [ -f $copy ] ; then
cp $src $copy
echo "copy $copy"
else
echo "ADD $copy"
cp $src $copy
svn add $copy
fi
done
|