Skip to content

Commit

Permalink
Simplify xercesc system modulefile
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Dec 11, 2023
1 parent 44c1a82 commit d5fce71
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scripts/install_boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [ -z "${base_dir}" ]; then usage; fi

parallel="${parallel:-$(nproc)}"

# Modulefile pointing to system version
# Modulefile for system version
if [ "$version" = "system" ]; then
version=$(dpkg -s libboost-dev | grep 'Version:' | cut -d' ' -f2 | cut -d. -f1,2,3)

Expand Down
2 changes: 1 addition & 1 deletion scripts/install_petsc_hdf5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [[ ! (${petsc_arch} = 'linux-gnu'
usage
fi

# Modulefile pointing to system version
# Modulefile for system version
if [[ ("$petsc_version" = "system")
|| ("$hdf5_version" = "system")
|| ("$petsc_arch" = "system") ]]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_sundials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ -z "${base_dir}" ]; then usage; fi

parallel="${parallel:-$(nproc)}"

# Modulefile pointing to system version
# Modulefile for system version
if [ "$version" = "system" ]; then
version=$(dpkg -s libsundials-dev | grep 'Version:' | cut -d' ' -f2 | cut -d. -f1,2,3 | cut -d+ -f1)

Expand Down
2 changes: 1 addition & 1 deletion scripts/install_vtk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [ -z "${base_dir}" ]; then usage; fi

parallel="${parallel:-$(nproc)}"

# Modulefile pointing to system version
# Modulefile for system version
if [ "$version" = "system" ]; then
version=""
for i in 9 8 7 6
Expand Down
5 changes: 1 addition & 4 deletions scripts/install_xercesc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ -z "${base_dir}" ]; then usage; fi

parallel="${parallel:-$(nproc)}"

# Modulefile pointing to system version
# Modulefile for system version
if [ "$version" = "system" ]; then
version=$(dpkg -s libxerces-c-dev | grep 'Version:' | cut -d' ' -f2 | cut -d. -f1,2,3 | cut -d+ -f1)

Expand Down Expand Up @@ -63,9 +63,6 @@ proc ModulesHelp { } {
module-whatis "This adds the environment variables for xercesc ${version}"
setenv XERCESC_INCLUDE /usr/include/xercesc
setenv XERCESC_LIBRARY /usr/lib/x86_64-linux-gnu
conflict xercesc
EOF
exit 0
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_xsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ done
if [ -z "${version}" ]; then usage; fi
if [ -z "${base_dir}" ]; then usage; fi

# Modulefile pointing to system version
# Modulefile for system version
if [ "$version" = "system" ]; then
version=$(dpkg -s xsdcxx | grep 'Version:' | cut -d' ' -f2 | cut -d. -f1,2,3 | cut -d- -f1)

Expand Down

0 comments on commit d5fce71

Please sign in to comment.