-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathupdate_configure.sh
More file actions
54 lines (43 loc) · 1.25 KB
/
update_configure.sh
File metadata and controls
54 lines (43 loc) · 1.25 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
#
# Update configure.sh for Cosmology Pipeline
# Written by A.H.Wright (2023-03-10)
#
set -e
#Set the default variables to determine the installation paths {{{
source variables.sh
#}}}
#Source the Script Documentation Functions {{{
source ${PACKROOT}/man/CosmoPipe.man.sh
source ${PACKROOT}/man/configure.man.sh
#}}}
#Full List of available options {{{
OPTLIST=`_get_optlist variables.sh`
#Add INSTALL-only variables
OPTLIST=`echo $OPTLIST NOCONFIG`
#}}}
#Prompt {{{
_prompt ${VERBOSE}
#}}}
#Variable Check {{{
_varcheck $0
#}}}
cd ${RUNROOT}
cp ${PACKROOT}/scripts/configure_raw.sh configure.sh
#Update the Configure script for this run {{{
_message " >${RED} Update the configure script ${DEF}"
MACHINE=`uname`
THELIPATH=`echo ${RUNROOT}/INSTALL/theli-1.6.1/bin/${MACHINE}*`
for OPT in $OPTLIST
do
${P_SED_INPLACE} "s#\\@${OPT}\\@#${!OPT}#g" ${RUNROOT}/configure.sh ${RUNROOT}/variables.sh
done
_message "${BLU} - Done! ${DEF}\n"
#}}}
#Closing Prompt {{{
_message "${BLU}=======================================${DEF}\n"
#Finished!
trap : 0
_message "${BLU}=======================================${DEF}\n"
_message "${BLU}==${RED} Configure file update Complete! ${BLU}==${DEF}\n"
_message "${BLU}=======================================${DEF}\n"
#}}}