sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #206: install_mcfm.sh

File install_mcfm.sh, 542 bytes (added by marek, 13 years ago)
Line 
1#!/bin/bash
2
3tarname=mcfm-5.8.tar.gz
4
5if ! test -f $tarname; then
6  wget http://mcfm.fnal.gov/$tarname
7fi
8
9if ! 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 -
18fi
19
20cd MCFM
21
22make
23
24if ! test -d ../lib; then mkdir ../lib; fi
25ar cr ../lib/libMCFM.a */*.o