build script reviewed

- help text updated
- remove .release-* files in ${PREFIX}/Tools/modulefile
- add find(1)
This commit is contained in:
Achim Gsell
2020-11-20 23:15:19 +01:00
parent 4535016ac4
commit 553ba0973b
+13 -2
View File
@@ -127,12 +127,12 @@ Options:
--distfilesdir=DIR
Directory where downloaded files are stored.
The default is '${DEFAULT_PMODULES_DISTFILESDIR}' in the
The default is 'PREFIX/${DEFAULT_DISTFILES_DIR}' in the
Pmodules root directory.
--tmpdir=DIR
Directory for temporary files.
The default is '${DEFAULT_PMODULES_TMPDIR}'
The default is 'PREFIX/${DEFAULT_TMPDIR}'
--help
Print this help text.
@@ -283,6 +283,8 @@ pmodules::compile() {
"${BOOTSTRAP_DIR}/Tools/${name}/build" \
"${build_opts[@]}" "$@" "${version}" || \
std::die 3 "Compiling '${name}' failed!"
# :FIXME: this must be fixed in modbuild!
rm -f "${BOOTSTRAP_DIR}/Tools/modulefiles/.release-$V"
}
local prefix="${PMODULES_ROOT:-${DEFAULT_PMODULES_ROOT}}"
@@ -343,6 +345,10 @@ pmodules::compile() {
build bash
fi
if [[ ! -f "${PMODULES_HOME}/sbin/find" ]] || [[ ${opt_force} == 'yes' ]]; then
build findutils
fi
if [[ ! -e "${PMODULES_HOME}/sbin/tclsh" ]] || [[ ${opt_force} == 'yes' ]]; then
build Tcl
fi
@@ -531,3 +537,8 @@ done
pmodules::${subcmd} "${subcmd_args[@]}"
# Local Variables:
# mode: sh
# sh-basic-offset: 8
# tab-width: 8
# End: