forked from jdswinbank/tkp-lofar-build
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_lus
More file actions
57 lines (43 loc) · 1.56 KB
/
Copy pathbuild_lus
File metadata and controls
57 lines (43 loc) · 1.56 KB
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
56
#!/bin/bash
####################################################################
startdir=`pwd`
BUILD_SCRIPTS_DIR=`dirname ${0}`
BUILD_SCRIPTS_DIR=`cd $BUILD_SCRIPTS_DIR; pwd -P`
source $BUILD_SCRIPTS_DIR/CONFIG
source $BUILD_SCRIPTS_DIR/utils.sh
cd $LOFAR_LATEST_SYMLINK
TARGET=`pwd -P`
SYMLINKS=$TARGET/symlinks
echo "Installing into $TARGET"
####################################################################
echo
echo "*** Building LUS... ***"
cd $LUS_SVNROOT
SVN_REV=$(get_git_svnrev)
GIT_HASH=$(get_git_short_hash)
LUS_REV="${SVN_REV}_${GIT_HASH}"
LUS_TARGET=$TARGET/lus_r${LUS_REV}
echo "LUS target is $LUS_TARGET"
rm -rf $LUS_SVNROOT/build
bootstrap_command="./bootstrap -DLUS_INSTALL_PREFIX=${LUS_TARGET}
-DCASACORE_ROOT_DIR=${SYMLINKS}/casacore-root
-DWCSLIB_ROOT_DIR=${WCSLIB_ROOT_DIR} -DWCSLIB_FORCE_BUILD=ON"
echo $bootstrap_command > bootstrap_command.sh
bash bootstrap_command.sh
check_result "LUS" "bootstrap" $?
cd $LUS_SVNROOT/build
## pybdsm has been moved to the lofar pipeline repository.
#make pybdsm -j${LOFAR_BUILD_NJOBS}
#check_result "LUS" "make pybdsm" $?
#export LOFARSOFT=$LUS_SVNROOT
#source $LUS_SVNROOT/devel_common/scripts/init.sh
#make pulsar -j${LOFAR_BUILD_NJOBS}
#check_result "LUS" "make pulsar" $?
#PULSAR_TARGET=$TARGET/pulsar_r${LUS_REV}
#mkdir -p $PULSAR_TARGET
#cp -r $LUS_SVNROOT/release/share/pulsar $PULSAR_TARGET
#ln -sfn $PULSAR_TARGET $SYMLINKS/pulsar-root
#unset LOFARSOFT
ln -sfn ${LUS_TARGET}/bin ${SYMLINKS}/bin/lus
ln -sfn ${LUS_TARGET}/lib/python ${SYMLINKS}/python-packages/lus
cd $startdir