#!/bin/bash cd $SIMPATH/generators if [ ! -d lib ]; then mkdir lib fi if (not_there pythia8 $SIMPATH/generators/lib/libpythia8.so); then untar pythia8 pythia8130.tgz ln -s pythia8130 pythia8 cd pythia8 ./configure --enable-shared if [ "$system" = "64bit" ]; then $MAKE_command -j$number_of_processes CC="gcc -m64" CXX="g++ -m64" else $MAKE_command -j$number_of_processes fi if [ "$platform" = "macosx" ]; then cd lib create_links dylib so cd .. fi cd ../lib ln -s ../pythia8/lib/libpythia8.so libpythia8.so ln -s ../pythia8/lib/liblhapdfdummy.so liblhapdfdummy.so check_all_libraries $SIMPATH/generators/lib check_success pythia8 $SIMPATH/generators/lib/libpythia8.so check=$? fi if [ "$platform" = "macosx" ]; then export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$SIMPATH/generators/lib else export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SIMPATH/generators/lib fi cd $SIMPATH return 1