aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
diff options
context:
space:
mode:
authorRadek Szymczyszyn <[email protected]>2017-08-10 17:52:29 +0200
committerRadek Szymczyszyn <[email protected]>2017-11-03 17:46:43 +0100
commite7fd9e02368494518bfdc1063939dadeef00cef2 (patch)
tree47fb5b90f52c15c3635ca5c87108e7c00c3f8ca0 /kerl
parent22f3dd1649d2f90a959e965712bfa395067bdccd (diff)
downloadkerl-e7fd9e02368494518bfdc1063939dadeef00cef2.tar.gz
kerl-e7fd9e02368494518bfdc1063939dadeef00cef2.tar.bz2
kerl-e7fd9e02368494518bfdc1063939dadeef00cef2.zip
Install docsh via a separate command
Diffstat (limited to 'kerl')
-rwxr-xr-xkerl19
1 files changed, 19 insertions, 0 deletions
diff --git a/kerl b/kerl
index e5dc056..926c945 100755
--- a/kerl
+++ b/kerl
@@ -1779,6 +1779,25 @@ case "$1" in
fi
fi
;;
+ install-docsh)
+ ACTIVE_PATH="$(get_active_path)"
+ if [ -n "$ACTIVE_PATH" ]; then
+ ACTIVE_NAME="$(get_name_from_install_path "$ACTIVE_PATH")"
+ if [ -z "$ACTIVE_NAME" ]; then
+ ## TODO: Are git builds installed the usual way
+ ## or do we need this clause to provide a fallback?
+ #BUILDNAME="$(basename "$ACTIVE_PATH")"
+ echo "$ACTIVE_PATH is not a kerl installation"
+ exit 1
+ else
+ BUILDNAME="$ACTIVE_NAME"
+ fi
+ install_docsh $BUILDNAME
+ else
+ echo "No Erlang/OTP installation is currently active - can't install docsh"
+ exit 1
+ fi
+ ;;
deploy)
if [ $# -lt 2 ]; then
echo "usage: $0 $1 <[user@]host> [directory] [remote_directory]"