summaryrefslogtreecommitdiffstats
path: root/mltk
diff options
context:
space:
mode:
Diffstat (limited to 'mltk')
-rwxr-xr-xmltk13
1 files changed, 10 insertions, 3 deletions
diff --git a/mltk b/mltk
index 95b924d5..4810de06 100755
--- a/mltk
+++ b/mltk
@@ -65,14 +65,16 @@ print_usage() {
echo -e ""
echo -e "Toolkit for creating preboot mini-linux for OpenSLX NG (mltk)"
#echo -e "Usage: $(basename ${SELF}) <target> [-d] [-c [module]*] [-b [module]*] [-p profile]"
- echo -e "Usage: $ARG0 <target> [-d] [-c [module]*] [-b [module]*] [-n]"
+ echo -e "Usage: $ARG0 <target> [-d] [-c [module]*] [-b [module]*] [-n [name]]"
echo -e ""
echo -e " Options:"
echo -e " -d activates debug output for the task (spamy)"
echo -e " -b build module(s) and copy them to the target build directory"
echo -e " -c clean build directory of module(s) and target dir"
#echo -e " -p profile build all modules from given profile (DEPRECATED?)"
- echo -e " -n bind mount all the local builds (remote/builds) to /export/builds"
+ echo -e " -n bind mount all the local builds (remote/builds) to /export/builds;"
+ echo -e " the optional parameter name allows to change the default mount target"
+ echo -e " <name> -> /export/<name>"
echo -e ""
echo -e " You can pass names of specific modules to clean/build (-c / -b)."
echo -e " Otherwise, all modules will be cleaned/built."
@@ -218,7 +220,12 @@ read_params() {
continue
;;
-n)
- [ "x" != "x$1" ] && perror "'-n' accepts no parameters. Given: $1"
+ if [ -z "$1" ]; then
+ REMOTE_EXPORT_DIR=/export/build
+ else
+ REMOTE_EXPORT_DIR="/export/$1"
+ shift
+ fi
REMOTE_EXPORT="1"
continue
;;