diff options
author | Sebastian | 2014-01-30 10:40:11 +0100 |
---|---|---|
committer | Sebastian | 2014-01-30 10:40:11 +0100 |
commit | 2e61e503974571153cd81e662abda5892b8b39e0 (patch) | |
tree | 0d94add73fa62d14ccc1bd52d3e395a349f27997 /mltk | |
parent | add module for swiss keymaps/locals (diff) | |
download | tm-scripts-2e61e503974571153cd81e662abda5892b8b39e0.tar.gz tm-scripts-2e61e503974571153cd81e662abda5892b8b39e0.tar.xz tm-scripts-2e61e503974571153cd81e662abda5892b8b39e0.zip |
allow to change default export path; on remote via mltk -n name; on server via
export REMOTE_EXPORT_DIR=/export/name
Diffstat (limited to 'mltk')
-rwxr-xr-x | mltk | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 ;; |