From d4ee8489dd6a3bee71413a675ef733d6f19b1d64 Mon Sep 17 00:00:00 2001 From: Evax Software Date: Wed, 13 Apr 2011 12:45:34 +0200 Subject: Allow KERL_AGNER_AUTOINSTALL on the command line --- README.md | 4 ++-- kerl | 6 ++++++ 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 -- cgit v1.2.3