https://github.com/idaholab/moose
Raw File
Tip revision: d771e02ea924f834a7d84b36358d71344671a4f6 authored by Andrew E Slaughter on 15 September 2021, 18:04:15 UTC
2021-09-15 release
Tip revision: d771e02
clone
#!/bin/bash

if(($# < 2))
  then
    echo Usage: ./clone existing_test new_test
    echo Note: Depending on how well the existing test conforms to protocol this might not work all that well
    exit 1
fi

basename1=`basename $1`
basename2=`basename $2`

cp -r $1 $2
cd $2

rm -f *~*
rm -f *#*
rm -f *out*
rm -f peacock*
rm -f *.pyc
rm gold/*

mv $basename1.i $basename2.i

sed -i "" "s/$basename1/$basename2/g" tests
back to top