Commit ceef36ec authored by gsell's avatar gsell
Browse files

configuration of default versions simplified

parent 876f2d5d
AUTOCONF_VERSION=2.69 autoconf 2.69
AUTOMAKE_VERSION=1.14 automake 1.14
CMAKE_VERSION=2.8.12.2 cmake 2.8.12.2
EMACS_VERSION=24.3 emacs 24.3
FILEBENCH_VERSION=1.4.9.1 filebench 1.4.9.1
GCC_VERSION=4.7.3 giflib 5.0.6
GCC_VERSION=4.8.2 gmp 5.1.1
GIFLIB_VERSION=5.0.6 gnuplot 4.6.3
GMP_VERSION=5.1.1 gsl 1.15
GNUPLOT_VERSION=4.6.3 h5hut_serial 1.99.13
GSL_VERSION=1.15 H5hut 1.99.13
H5HUT_SERIAL_VERSION=1.99.13 H5root 1.2.0
H5HUT_VERSION=1.99.13 hdf5_serial 1.8.12
H5ROOT_VERSION=1.2.0 hdf5 1.8.12
HDF5_SERIAL_VERSION=1.8.12 ippl 1.1.0
HDF5_VERSION=1.8.12 libtool 2.4.2
IPPL_VERSION=1.1.0 libungif 4.1.4
LIBTOOL_VERSION=2.4.2 lua 5.1.4.5
LIBUNGIF_VERSION=4.1.4 m4 1.4.17
LUA_VERSION=5.1.4.5 mathlib 1.0.0
M4_VERSION=1.4.17 Modules 3.2.10
MATHLIB_VERSION=1.0.0 mpc 1.0.2
MODULES_VERSION=3.2.10 mpfr 3.1.2
MPC_VERSION=1.0.2 OPAL 1.2.0
MPFR_VERSION=3.1.2 parmetis 3.2.0
OPAL_VERSION=1.2.0 root 5.34.11
PARMETIS_VERSION=3.2.0 tiff 4.0.3
ROOT_VERSION=5.34.11 trilinos 11.4.1
TIFF_VERSION=4.0.3 vtk 5.10.1
TRILINOS_VERSION=11.4.1
VTK_VERSION=5.10.1
#!/bin/bash #!/bin/bash
declare -rx ARGS="$@" PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin
declare -rx SHLIBDIR=$( cd $(dirname "$BASH_SOURCE") && pwd )
declare -r OS=$(uname -s) declare -rx ARGS="$@"
declare -rx SHLIBDIR=$( cd $(dirname "$BASH_SOURCE") && pwd )
declare -r OS=$(uname -s)
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin # number of parallel make jobs
declare -i JOBS=3
source "${SHLIBDIR}/lib.bash" source "${SHLIBDIR}/lib.bash"
...@@ -48,26 +49,19 @@ ENV=VALUE ...@@ -48,26 +49,19 @@ ENV=VALUE
exit 1 exit 1
} }
#
# the module name might already be set in the build script(!) # the module name might already be set in the build script(!)
if [[ -z $P ]]; then #if [[ -z $P ]]; then
P=$(basename $0) P=$(basename $0)
P=${P%.*} P=${P%.*}
fi #fi
# unset the version of the module # unset the version of the module
_P=$(echo $P | tr [:lower:] [:upper:]) _P=$(echo $P | tr [:lower:] [:upper:])
_V=${_P}_VERSION _V=${_P}_VERSION
unset ${_V} #unset ${_V}
#fi
declare -i JOBS=3
#while read _name _version; do
# [[ -z ${_name} ]] && continue
# [[ -z ${_version} ]] && continue
# [[ "${_name:0:1}" == '#' ]] && continue
# _NAME=$(echo ${_name} | tr [:lower:] [:upper:])
# eval ${_NAME}_VERSION=$_version
#done < "${VERSIONS}"
DEBUG_ON='' DEBUG_ON=''
FORCE_REBUILD='' FORCE_REBUILD=''
...@@ -143,6 +137,8 @@ declare -x CONFIG_DIR="${EM_BASEDIR}/config" ...@@ -143,6 +137,8 @@ declare -x CONFIG_DIR="${EM_BASEDIR}/config"
declare -x SCRIPTDIR="${EM_BASEDIR}/scripts" declare -x SCRIPTDIR="${EM_BASEDIR}/scripts"
declare -x EM_TMPDIR="${EM_BASEDIR}/tmp" declare -x EM_TMPDIR="${EM_BASEDIR}/tmp"
declare -x DEFAULT_VERSIONS_FILE="${CONFIG_DIR}/versions.conf"
# these directories are module dependend # these directories are module dependend
declare -x EM_SRCDIR='' declare -x EM_SRCDIR=''
declare -x EM_BUILDDIR='' declare -x EM_BUILDDIR=''
...@@ -204,7 +200,14 @@ function em.add_to_family() { ...@@ -204,7 +200,14 @@ function em.add_to_family() {
die 43 "${1}: family does not exist." die 43 "${1}: family does not exist."
fi fi
EM_FAMILY=$1 EM_FAMILY=$1
source "${CONFIG_DIR}/versions.conf" while read _name _version; do
[[ -z ${_name} ]] && continue
[[ -z ${_version} ]] && continue
[[ "${_name:0:1}" == '#' ]] && continue
_NAME=$(echo ${_name} | tr [:lower:] [:upper:])
eval ${_NAME}_VERSION=$_version
done < "${DEFAULT_VERSIONS_FILE}"
#source "${CONFIG_DIR}/versions.conf"
for f in "${CONFIG_DIR}/families.d/"*.conf; do for f in "${CONFIG_DIR}/families.d/"*.conf; do
source "${f}" source "${f}"
done done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment