Build HDFView module
Notations
Please read this document for commonly used notations and environment variables.
Setup environment
Set
GRP='Tools'P=HDFViewVto the HDFView version to installPREFIX=$PMODULES_ROOT/$GRP/$P/$VBUILDBLOCK_DIRto the directory of this file.MODULEFILES_DIR=$PMODULES_ROOT/$GRP/modulefiles.RELEASEto the release of the module
Download
Download the package from https://www.hdfgroup.org/downloads/hdfview/. The compressed tar-file contains a shell-script installer.
Install the package
- Unpack the downloaded tar-file
cd "$PMODULES_ROOT/Tools".- Run the installer script
- Accept the license
- Answer 'no' to the question "Do you want to include the subdirectory HDFView-$V-Linux?"
- HDFView will be installed into
$PREFIX
Post-install
mkdir "$PREFIX"/{bin,libexec}mv "$PREFIX/hdfview.sh" "$PREFIX/libexec"install --mode 0755 "$BUILDBLOCK_DIR/HDFView" "$PREFIX/bin"
Install files for Pmodules
install --mode 0644 "$BUILDBLOCK_DIR/modulefile" "$MODULEFILES_DIR/$P/$V"echo "$RELEASE" > "$MODULEFILES_DIR/$P/.release-$V"