Ticket #206: install_mcfm.sh
File install_mcfm.sh, 542 bytes (added by , 13 years ago) |
---|
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | tarname=mcfm-5.8.tar.gz |
4 | |
5 | if ! test -f $tarname; then |
6 | wget http://mcfm.fnal.gov/$tarname |
7 | fi |
8 | |
9 | if ! test -d MCFM; then |
10 | tar -xzf $tarname |
11 | cd MCFM |
12 | mkdir obj |
13 | sed -e's/\/Users\/johnmc\/MCFM/'$(pwd | sed -e's/\//\\\//g')'/g' \ |
14 | -e's/\(FFLAGS.*=.*\)-fno-f2c/\1-fPIC -DPIC/g' -i makefile |
15 | sed -e's/\(.*call pdfwrap\)/c\1/g' -e's/\(.*nlooprun=0\)/c\1/g' -i src/Need/*.f |
16 | sed -e's/\(.*[ \t]stop\)/c\1/g' -i src/Need/chooser.f |
17 | cd - |
18 | fi |
19 | |
20 | cd MCFM |
21 | |
22 | make |
23 | |
24 | if ! test -d ../lib; then mkdir ../lib; fi |
25 | ar cr ../lib/libMCFM.a */*.o |