summaryrefslogtreecommitdiffstats
path: root/authz-test/TestSuite/copy
blob: 27d57cb63708a8a4d5ac4f6a7713ac89d8f1c47a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# /bin/bash
if [ "$2" != "" ] ; then 
  if [ -e $2 ]; then
     echo "$2 exists, copy aborted"
     exit 1
  fi
  mkdir -p $2
  for FILE in $1/*; do 
     FILE2=`echo $FILE | sed -e "s/$1/$2/"`
     echo $FILE2
     sed -e "s/$1/$2/g" $FILE > $FILE2
  done
else
  echo 'Usage: copy <Source TestCase> <Target TestCase>'
fi

exit 0