3
# First get to main level directory for this process
5
echo "Setting up the Template to work with the StandAlone version of MadGraphII"
6
if [[ ! -d ./bin ]]; then
8
if [[ ! -d ./bin ]]; then
9
echo "Error: store must be executed from the main, or bin directory"
14
# Now let shell know where to find important executables
18
mgdir=$main/../MadGraphII
24
#if ( ! -e $mgdir/mg2_sa ) then
25
#echo "Compiling Stand Alone version of MadGraphII"
31
echo "Transforming standard template in standalone version"
34
mv ./bin/newprocess_sa ./temp/newprocess
35
mv ./bin/setup_model-pl ./temp/
36
mv ./bin/Passto_gfortran.py ./temp/
37
mv ./Cards/proc_card.dat ./temp/
38
mv ./SubProcesses/makefile_sa ./temp/makefile
39
mv ./SubProcesses/check_sa.f ./temp/
40
sed "s/all:\(\s\+\$(LIBDIR)lib\w\+\.\w\+\)*/all: \$(LIBDIR)libdhelas3.a \$(LIBDIR)libmodel.a/" < ./Source/makefile > ./temp/mfsource
41
rm -rf bin/* Cards/* Events HTML Source/* lib/* SubProcesses/*
45
mv ./temp/newprocess ./bin/
46
mv ./temp/setup_model-pl ./bin/
47
mv ./temp/Passto_gfortran.py ./bin/
48
mv ./temp/proc_card.dat ./Cards/
49
mv ./temp/makefile ./SubProcesses/
50
mv ./temp/check_sa.f ./SubProcesses/
51
mv ./temp/mfsource ./Source/makefile
54
echo " Ready to go with StandAlone MadGraphII "