Commit 6cac7ef1 authored by gsell's avatar gsell

new family names set in build scripts

parent 460b6973
if [[ -z $EM_PREFIX ]]; then
EM_PREFIX_AFS='/afs/psi.ch/sys/@sys'
EM_PREFIX_LOCAL='/opt/em'
if [[ -d ${EM_PREFIX_LOCAL} ]]; then
declare -x EM_PREFIX=${EM_PREFIX_LOCAL}
elif [[ -d ${EM_PREFIX_AFS} ]]; then
declare -x EM_PREFIX=${EM_PREFIX_AFS}
else
echo "Oops: cannot initialize Modules!"
return 1
fi
fi
declare -x MODULES_VERSION='3.2.10'
...@@ -31,7 +31,7 @@ function em.install_doc() { ...@@ -31,7 +31,7 @@ function em.install_doc() {
"${DOCDIR}" "${DOCDIR}"
} }
em.add_to_family 'hdf5' em.add_to_family 'HDF5'
em.set_runtime_dependencies "${COMPILER}" "${MPI}" 'hdf5' em.set_runtime_dependencies "${COMPILER}" "${MPI}" 'hdf5'
em.set_build_dependencies "autoconf" "automake" "libtool" "${COMPILER}" "${MPI}" "vtk" "hdf5" em.set_build_dependencies "autoconf" "automake" "libtool" "${COMPILER}" "${MPI}" "vtk" "hdf5"
em.make_all em.make_all
......
...@@ -23,7 +23,7 @@ function em.install() { ...@@ -23,7 +23,7 @@ function em.install() {
make -C tools install make -C tools install
} }
em.add_to_family 'hdf5_serial' em.add_to_family 'HDF5_serial'
em.set_runtime_dependencies "${COMPILER}" 'hdf5_serial' em.set_runtime_dependencies "${COMPILER}" 'hdf5_serial'
em.set_build_dependencies "autoconf" "automake" "libtool" "${COMPILER}" "vtk" "hdf5_serial" em.set_build_dependencies "autoconf" "automake" "libtool" "${COMPILER}" "vtk" "hdf5_serial"
em.make_all em.make_all
......
...@@ -19,7 +19,7 @@ function em.build() { ...@@ -19,7 +19,7 @@ function em.build() {
# use system gcc to compile # use system gcc to compile
declare -rx CC=gcc declare -rx CC=gcc
em.add_to_family "core" em.add_to_family 'Tools'
em.set_build_dependencies "lua" em.set_build_dependencies "lua"
em.make_all em.make_all
em.cleanup_src em.cleanup_src
...@@ -17,5 +17,5 @@ module() { ...@@ -17,5 +17,5 @@ module() {
# use system gcc to compile # use system gcc to compile
declare -rx CC=gcc declare -rx CC=gcc
em.add_to_family "core" em.add_to_family 'Tools'
em.make_all em.make_all
...@@ -10,8 +10,8 @@ function em.configure() { ...@@ -10,8 +10,8 @@ function em.configure() {
"${EM_SRCDIR}" "${EM_SRCDIR}"
} }
em.add_to_family 'core' em.add_to_family 'Tools'
em.load_family 'hdf5' em.load_family 'HDF5'
em.set_runtime_dependencies "${COMPILER}" "${MPI}" em.set_runtime_dependencies "${COMPILER}" "${MPI}"
em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'hdf5' 'H5hut' 'trilinos' 'ippl' 'gsl' em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'hdf5' 'H5hut' 'trilinos' 'ippl' 'gsl'
em.make_all em.make_all
......
...@@ -23,7 +23,7 @@ function em.install_doc() { ...@@ -23,7 +23,7 @@ function em.install_doc() {
# use system gcc to compile # use system gcc to compile
declare -rx CC=gcc declare -rx CC=gcc
em.add_to_family "core" em.add_to_family 'Programming'
em.set_build_dependencies "m4" em.set_build_dependencies "m4"
em.make_all em.make_all
...@@ -23,7 +23,7 @@ function em.install_doc() { ...@@ -23,7 +23,7 @@ function em.install_doc() {
# use system gcc to compile # use system gcc to compile
declare -rx CC=gcc declare -rx CC=gcc
em.add_to_family "core" em.add_to_family 'Programming'
em.set_build_dependencies "m4" "autoconf" em.set_build_dependencies 'm4' 'autoconf'
em.make_all em.make_all
...@@ -6,7 +6,7 @@ function em.configure() { ...@@ -6,7 +6,7 @@ function em.configure() {
"${EM_SRCDIR}/bootstrap" --prefix="${PREFIX}" "${EM_SRCDIR}/bootstrap" --prefix="${PREFIX}"
} }
em.add_to_family 'core' em.add_to_family 'Programming'
em.set_build_dependencies "${COMPILER}" em.set_build_dependencies "${COMPILER}"
em.make_all em.make_all
...@@ -28,7 +28,7 @@ function em.configure() { ...@@ -28,7 +28,7 @@ function em.configure() {
|| exit 1 || exit 1
} }
em.add_to_family "core" em.add_to_family 'Tools'
em.set_build_dependencies ${build_dependencies} em.set_build_dependencies ${build_dependencies}
em.make_all em.make_all
...@@ -26,7 +26,7 @@ function em.install_doc() { ...@@ -26,7 +26,7 @@ function em.install_doc() {
# use system gcc to compile # use system gcc to compile
declare -rx CC=gcc declare -rx CC=gcc
em.add_to_family "core" em.add_to_family 'Programming'
em.set_build_dependencies "gmp" "mpfr" "mpc" em.set_build_dependencies "gmp" "mpfr" "mpc"
em.make_all em.make_all
...@@ -13,6 +13,6 @@ function em.configure() { ...@@ -13,6 +13,6 @@ function em.configure() {
declare -rx CC=gcc declare -rx CC=gcc
declare -rx CPP=/usr/bin/cpp declare -rx CPP=/usr/bin/cpp
em.add_to_family "core" em.add_to_family 'Programming'
em.make_all em.make_all
...@@ -20,6 +20,6 @@ function em.install_doc() { ...@@ -20,6 +20,6 @@ function em.install_doc() {
"${DOCDIR}" "${DOCDIR}"
} }
em.add_to_family "core" em.add_to_family 'Tools'
em.set_build_dependencies "${COMPILER}" em.set_build_dependencies "${COMPILER}"
em.make_all em.make_all
...@@ -22,6 +22,6 @@ function em.install_doc() { ...@@ -22,6 +22,6 @@ function em.install_doc() {
"${DOCDIR}" "${DOCDIR}"
} }
em.add_to_family "compiler" em.add_to_family 'Compiler'
em.set_build_dependencies "${COMPILER}" em.set_build_dependencies "${COMPILER}"
em.make_all em.make_all
...@@ -22,7 +22,7 @@ function em.install_doc() { ...@@ -22,7 +22,7 @@ function em.install_doc() {
"${DOCDIR}" "${DOCDIR}"
} }
em.add_to_family "mpi" em.add_to_family 'MPI'
em.set_runtime_dependencies "${COMPILER}" "${MPI}" em.set_runtime_dependencies "${COMPILER}" "${MPI}"
em.set_build_dependencies "${COMPILER}" "${MPI}" em.set_build_dependencies "${COMPILER}" "${MPI}"
em.make_all em.make_all
......
...@@ -12,7 +12,7 @@ function em.configure() { ...@@ -12,7 +12,7 @@ function em.configure() {
|| exit 1 || exit 1
} }
em.add_to_family "compiler" em.add_to_family 'Compiler'
em.set_build_dependencies "${COMPILER}" em.set_build_dependencies "${COMPILER}"
em.make_all em.make_all
...@@ -18,9 +18,9 @@ function em.install_doc() { ...@@ -18,9 +18,9 @@ function em.install_doc() {
"${DOCDIR}" "${DOCDIR}"
} }
em.add_to_family "mpi" em.add_to_family 'MPI'
em.set_runtime_dependencies "${COMPILER}" "${MPI}" em.set_runtime_dependencies "${COMPILER}" "${MPI}"
em.set_build_dependencies "cmake" "${COMPILER}" "${MPI}" em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}"
em.make_all em.make_all
...@@ -21,7 +21,7 @@ function em.install_doc() { ...@@ -21,7 +21,7 @@ function em.install_doc() {
# use system gcc to compile # use system gcc to compile
declare -rx CC=gcc declare -rx CC=gcc
em.add_to_family "core" em.add_to_family 'Programming'
em.set_build_dependencies "autoconf" "automake" em.set_build_dependencies "autoconf" "automake"
em.make_all em.make_all
...@@ -18,7 +18,7 @@ function em.build() { ...@@ -18,7 +18,7 @@ function em.build() {
make -j ${JOBS} make -j ${JOBS}
} }
em.add_to_family "core" em.add_to_family 'Programming'
em.set_build_dependencies "${COMPILER}" em.set_build_dependencies "${COMPILER}"
em.make_all em.make_all
em.cleanup_src em.cleanup_src
...@@ -11,5 +11,5 @@ function em.configure() { ...@@ -11,5 +11,5 @@ function em.configure() {
# use system gcc to compile # use system gcc to compile
declare -rx CC=gcc declare -rx CC=gcc
em.add_to_family "core" em.add_to_family 'Programming'
em.make_all em.make_all
...@@ -47,7 +47,7 @@ function em.install_doc() { ...@@ -47,7 +47,7 @@ function em.install_doc() {
: :
} }
em.add_to_family "compiler" em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}" em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}" em.set_build_dependencies "${COMPILER}"
em.make_all em.make_all
......
...@@ -14,7 +14,7 @@ function em.configure() { ...@@ -14,7 +14,7 @@ function em.configure() {
# use system gcc to compile # use system gcc to compile
declare -rx CC=gcc declare -rx CC=gcc
em.add_to_family "core" em.add_to_family 'Programming'
em.set_build_dependencies "gmp" "mpfr" em.set_build_dependencies 'gmp' 'mpfr'
em.make_all em.make_all
...@@ -13,6 +13,6 @@ function em.configure() { ...@@ -13,6 +13,6 @@ function em.configure() {
# use system gcc to compile # use system gcc to compile
declare -rx CC=gcc declare -rx CC=gcc
em.add_to_family "core" em.add_to_family 'Programming'
em.set_build_dependencies "gmp" em.set_build_dependencies 'gmp'
em.make_all em.make_all
...@@ -23,7 +23,7 @@ function em.install_doc() { ...@@ -23,7 +23,7 @@ function em.install_doc() {
"${DOCDIR}" "${DOCDIR}"
} }
em.add_to_family "compiler" em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}" em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}" em.set_build_dependencies "${COMPILER}"
em.make_all em.make_all
...@@ -48,7 +48,7 @@ function em.install_doc() { ...@@ -48,7 +48,7 @@ function em.install_doc() {
"${DOCDIR}" "${DOCDIR}"
} }
em.add_to_family "mpi" em.add_to_family 'MPI'
em.set_runtime_dependencies "${COMPILER}" "${MPI}" em.set_runtime_dependencies "${COMPILER}" "${MPI}"
em.set_build_dependencies "${COMPILER}" "${MPI}" em.set_build_dependencies "${COMPILER}" "${MPI}"
em.make_all em.make_all
......
...@@ -61,7 +61,7 @@ function em.install() { ...@@ -61,7 +61,7 @@ function em.install() {
mv "${PREFIX}/README" "${DOCDIR}" mv "${PREFIX}/README" "${DOCDIR}"
} }
em.add_to_family "compiler" em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}" em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "${COMPILER}" em.set_build_dependencies "${COMPILER}"
em.make_all em.make_all
#!/bin/bash
declare -r SCRIPTS_DIR=$(dirname $0)
bash "${SCRIPTS_DIR}/m4.build" "$@" || exit 1
bash "${SCRIPTS_DIR}/autoconf.build" "$@" || exit 1
bash "${SCRIPTS_DIR}/automake.build" "$@" || exit 2
bash "${SCRIPTS_DIR}/libtool.build" "$@" || exit 3
bash "${SCRIPTS_DIR}/gmp.build" "$@" || exit 4
bash "${SCRIPTS_DIR}/mpfr.build" "$@" || exit 5
bash "${SCRIPTS_DIR}/mpc.build" "$@" || exit 6
bash "${SCRIPTS_DIR}/gcc.build" "$@" || exit 7
...@@ -71,8 +71,8 @@ function em.install_doc() { ...@@ -71,8 +71,8 @@ function em.install_doc() {
"${DOCDIR}" "${DOCDIR}"
} }
em.add_to_family "mpi" em.add_to_family 'MPI'
em.set_runtime_dependencies "${COMPILER}" "${MPI}" em.set_runtime_dependencies "${COMPILER}" "${MPI}"
em.set_build_dependencies "cmake" "${COMPILER}" "${MPI}" "mathlib" "parmetis" em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'mathlib' 'parmetis'
em.make_all em.make_all
...@@ -26,8 +26,8 @@ function em.configure() { ...@@ -26,8 +26,8 @@ function em.configure() {
"${EM_SRCDIR}" "${EM_SRCDIR}"
} }
em.add_to_family "compiler" em.add_to_family 'Compiler'
em.set_runtime_dependencies "${COMPILER}" em.set_runtime_dependencies "${COMPILER}"
em.set_build_dependencies "cmake" "${COMPILER}" em.set_build_dependencies 'cmake' "${COMPILER}"
em.make_all em.make_all
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