sg481n | bd890c5 | 2017-08-28 12:11:35 -0400 | [diff] [blame^] | 1 | # /bin/bash |
2 | if [ "$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 | ||||
13 | else | ||||
14 | echo 'Usage: copy <Source TestCase> <Target TestCase>' | ||||
15 | fi | ||||
16 | |||||
17 | exit 0 |