blob: 59e86bf9bca8a6bb9d23ca64f5c11fb147d9eb47 [file] [log] [blame]
sg481n43854a92017-08-03 17:27:34 -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 TestCases/$2
8 for FILE in TestCases/$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