aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvax Software <[email protected]>2011-04-13 12:45:34 +0200
committerEvax Software <[email protected]>2011-04-13 12:45:34 +0200
commitd4ee8489dd6a3bee71413a675ef733d6f19b1d64 (patch)
treed8bce92885b905640ce5042cab37d09bb7dea937
parenta0706fe568012549772c6700ee3bfdee826cfb26 (diff)
downloadkerl-d4ee8489dd6a3bee71413a675ef733d6f19b1d64.tar.gz
kerl-d4ee8489dd6a3bee71413a675ef733d6f19b1d64.tar.bz2
kerl-d4ee8489dd6a3bee71413a675ef733d6f19b1d64.zip
Allow KERL_AGNER_AUTOINSTALL on the command line
-rw-r--r--README.md4
-rwxr-xr-xkerl6
2 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index ea2fd73..6f90a12 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,7 @@ You can verify your build has been registered:
R14B02,r14b02
R14B02,r14b02_nohipe
-Now install a build to some location (optionally you can disable agner support by adding KERL_DISABLE_AGNER=yes to your $HOME/.kerlrc file, or on the contrary define a list of additional packages to install using the KERL_AGNER_AUTOINSTALL directive in the same file):
+Now install a build to some location (optionally you can disable agner support by adding KERL_DISABLE_AGNER=yes to your $HOME/.kerlrc file, or on the contrary define a list of additional packages to install using the KERL_AGNER_AUTOINSTALL directive in the same file or on the command line):
$ kerl install r14b02 /path/to/install/dir/
Installing Erlang/OTP R14B02 (r14b02) in /path/to/install/dir...
@@ -244,7 +244,7 @@ If path is ommited the current working directory will be used
#### Auto-installing packages
-You can auto-install agner packages listing them in the KERL_AGNER_AUTOINSTALL variable in your $HOME/.kerlrc file, e.g. KERL_AGNER_AUTOINSTALL="erlzmq cowboy"
+You can auto-install agner packages listing them in the KERL_AGNER_AUTOINSTALL variable in your $HOME/.kerlrc file or on the command line, e.g. KERL_AGNER_AUTOINSTALL="erlzmq cowboy"
#### SASL startup
diff --git a/kerl b/kerl
index 4b2d109..ccc0750 100755
--- a/kerl
+++ b/kerl
@@ -32,6 +32,9 @@ fi
if [ -n "$KERL_SASL_STARTUP" ]; then
_KSS="$KERL_SASL_STARTUP"
fi
+if [ -n "$KERL_AGNER_AUTOINSTALL" ]; then
+ _KAA="$KERL_AGNER_AUTOINSTALL"
+fi
KERL_CONFIGURE_OPTIONS=
KERL_DISABLE_AGNER=
KERL_SASL_STARTUP=
@@ -48,6 +51,9 @@ fi
if [ -n "$_KSS" ]; then
KERL_SASL_STARTUP="$_KSS"
fi
+if [ -n "$_KAA" ]; then
+ KERL_AGNER_AUTOINSTALL="$_KAA"
+fi
if [ -z "$KERL_SASL_STARTUP" ]; then
INSTALL_OPT=-minimal