-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·55 lines (44 loc) · 970 Bytes
/
setup.sh
File metadata and controls
executable file
·55 lines (44 loc) · 970 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
unset MIDAS_DIR
unset MIDASSYS
unset MIDAS_HOME
unset MIDAS_EXPTAB
mkdir -p dir
START_DIR=$PWD
cd midas && make && cd -
#export MIDAS_DIR=$PWD/dir
if [[ ! -f exptab ]]; then
echo "AlCap $PWD/dir $(whoami)" > exptab
fi
export MIDAS_EXPTAB=$PWD/exptab
export MIDASSYS=$PWD/midas
export MIDAS_HOME=$MIDASSYS
#export MIDAS_DIR=$PWD/analyzer/work
#export MIDAS_ROOT=$HOME_COMET/Alcap/AlcapDAQ/midas
uname=`uname -m`
arch=''
if [ "$uname" == "x86_64" ]; then
arch='64'
fi
export PATH=$MIDASSYS/linux$arch/bin:$PATH
export LD_LIBRARY_PATH=$MIDASSYS/linux$arch/lib:$PWD/compress:$LD_LIBRARY_PATH
#cd compress && make && cd -
cd CAEN && mkdir -p lib && ./link.sh && cd -
for crate in $(ls -d crate*);
do
echo "****************************************************"
echo "Making "$crate
cd $crate
if [ $? -eq 0 ]; then
make
cd -
fi
echo "Done "$crate"!"
done
echo "Making mevb"
cd evb
make
cd -
echo "Done mevb!"
. thisdaq.sh
cd $START_DIR