blob: 27d57cb63708a8a4d5ac4f6a7713ac89d8f1c47a [file] [log] [blame]
sg481nbd890c52017-08-28 12:11:35 -04001# /bin/bash
2if [ "$2" != "" ] ; then
3 if [ -e $2 ]; then
4 echo "$2 exists, copy aborted"
5 exit 1
6 fi
7 mkdir -p $2
8 for FILE in $1/*; do
9 FILE2=`echo $FILE | sed -e "s/$1/$2/"`
10 echo $FILE2
11 sed -e "s/$1/$2/g" $FILE > $FILE2
12 done
13else
14 echo 'Usage: copy <Source TestCase> <Target TestCase>'
15fi
16
17exit 0