forked from afropapp13/BuildEventGenerators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_neut.sh
executable file
·28 lines (23 loc) · 891 Bytes
/
build_neut.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" && pwd )"
source ${BASE_DIR}/global_vars.sh
# Cloning the NEUT repo
#git clone https://github.com/neut-devel/neut.git
git clone https://github.com/afropapp13/neut.git
cd neut
git checkout tags/neut_5.6.0_RC1
# Building all the NEUT dependencies
git clone https://github.com/afropapp13/neutbuild.git
cd neutbuild
./build_neut.sh ../
# Exporting all the paths
export CERNLIB=${BASE_DIR}/neut/neutbuild/cernlib/cernlib_build
export CERN=${CERNLIB}
export CERN_LEVEL=2005
# Building NEUT
cd ..
mkdir build; cd build;
../src/configure --prefix=$(readlink -f Linux)
make -j 8
make install
source $(pwd)/Linux/setup.sh