aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSalvador Fuentes Jr <[email protected]>2011-08-30 02:26:17 -0700
committerSalvador Fuentes Jr <[email protected]>2011-08-30 02:26:17 -0700
commit2f07012fa36580ec8b1b4bafcbfce4056c20e47d (patch)
tree8089ffe7317a42cac470a0107907dc1452a27e22
parent780e84404b0478495cba6912a2b2434e11d95f58 (diff)
downloadkerl-2f07012fa36580ec8b1b4bafcbfce4056c20e47d.tar.gz
kerl-2f07012fa36580ec8b1b4bafcbfce4056c20e47d.tar.bz2
kerl-2f07012fa36580ec8b1b4bafcbfce4056c20e47d.zip
use KERL_DEFAULT_INSTALL_DIR/<build-name> if defined in dotkerlrc
-rwxr-xr-xkerl7
1 files changed, 5 insertions, 2 deletions
diff --git a/kerl b/kerl
index c2599f4..9e33e89 100755
--- a/kerl
+++ b/kerl
@@ -27,7 +27,6 @@ KERL_BASE_DIR="$HOME/.kerl"
KERL_CONFIG="$HOME/.kerlrc"
KERL_DOWNLOAD_DIR="$KERL_BASE_DIR/archives"
KERL_BUILD_DIR="$KERL_BASE_DIR/builds"
-KERL_DEFAULT_INSTALL_DIR="$KERL_BASE_DIR/installs"
if [ -n "$KERL_CONFIGURE_OPTIONS" ]; then
_KCO="$KERL_CONFIGURE_OPTIONS"
fi
@@ -530,7 +529,11 @@ case "$1" in
if [ $# -eq 3 ]; then
do_install $2 "$3"
else
- do_install $2 "$KERL_DEFAULT_INSTALL_DIR/$2"
+ if [ -z "$KERL_DEFAULT_INSTALL_DIR" ]; then
+ do_install $2 .
+ else
+ do_install $2 "$KERL_DEFAULT_INSTALL_DIR/$2"
+ fi
fi
;;
update)