~maddevelopers/mg5amcnlo/3.0.2-alpha0

« back to all changes in this revision

Viewing changes to Template/bin/standalone

Added Template and HELAS into bzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
#  First get to main level directory for this process
 
4
#
 
5
echo "Setting up the Template to work with the StandAlone version of MadGraphII"
 
6
if [[  ! -d ./bin  ]]; then
 
7
    cd ../
 
8
    if [[ ! -d ./bin ]]; then
 
9
        echo "Error: store must be executed from the main, or bin directory"
 
10
        exit
 
11
    fi
 
12
fi
 
13
 
 
14
#  Now let shell know where to find important executables
 
15
 
 
16
main=`pwd`
 
17
dirbin=$main/bin
 
18
mgdir=$main/../MadGraphII
 
19
mad2_sa=$mgdir/mg2_sa
 
20
helas=$main/../HELAS
 
21
mgmedir=$main/..
 
22
 
 
23
 
 
24
#if ( ! -e $mgdir/mg2_sa ) then
 
25
#echo "Compiling Stand Alone version of MadGraphII"
 
26
#cd $mgdir
 
27
#make mg2_sa
 
28
#cd $main
 
29
#endif
 
30
 
 
31
echo "Transforming standard template in standalone version"
 
32
cd $main
 
33
mkdir temp
 
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/*
 
42
mkdir Source/MODEL
 
43
mkdir Source/DHELAS
 
44
 
 
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
 
52
rm -rf temp
 
53
 
 
54
echo " Ready to go with StandAlone MadGraphII "