3 # Script to change the AnalysisExample name to something else.
4 # Usage: ./rename.sh <new-name>
8 if [[ -
z "$newname" ]]; then
9 echo
"Usage: $(basename "$0
") NewName" >&2
14 mv
"AnalysisExample_module.cc" "${newname}_module.cc"
15 mv
"AnalysisExample.fcl" "${newname}.fcl"
17 # Search through all the files, replacing the text "AnalysisExample"
19 sed -i -
e "s/AnalysisExample/${newname}/g" "${newname}.fcl" "${newname}_module.cc" "CMakeLists.txt"
process_name opflash particleana ie ie ie z