bootstrap:

- add options to overwrite installation root and configuration file
This commit is contained in:
2017-05-17 12:56:22 +02:00
parent 1d4b3de94c
commit f5bf857cee
3 changed files with 78 additions and 4 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
#
#
# define PMODULES_ROOT only if it has not been passed as argument
# to build/install scripts
#
if [[ -z "${PMODULES_ROOT}" ]]; then
declare -x PMODULES_ROOT='/home/psi.local'
fi
declare -x PMODULES_CONFIG_DIR='config'
declare -x PMODULES_MODULEFILES_DIR='modulefiles'
declare -x PMODULES_TEMPLATES_DIR='templates'
declare -x PMODULES_HOME="${PMODULES_ROOT}/Tools/Pmodules/${PMODULES_VERSION}"
declare -x PMODULES_DEFAULT_GROUPS='Tools Programming'
declare -x PMODULES_DEFINED_RELEASES=':unstable:stable:deprecated:'
declare -x PMODULES_DEFAULT_RELEASES='stable'
declare -x PMODULES_DISTFILESDIR='/afs/psi.ch/software/Pmodules/distfiles'
declare -x PMODULES_TMPDIR="/var/tmp/${USER}"