aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rwxr-xr-xkerl13
2 files changed, 9 insertions, 6 deletions
diff --git a/README.md b/README.md
index 3cd69b0..83a0641 100644
--- a/README.md
+++ b/README.md
@@ -85,6 +85,8 @@ Now install a build to some location (optionally you can disable agner support b
Later on, you can leave the installation typing:
kerl_deactivate
+Note that you can install an agnerized version of rebar along with agner using KERL_INSTALL_AGNERIZED_REBAR in your .kerlrc file or on the command line.
+
Here again you can check the installation's been registered:
$ kerl list installations
diff --git a/kerl b/kerl
index 0eed78d..d1f569a 100755
--- a/kerl
+++ b/kerl
@@ -193,9 +193,9 @@ do_update_agner()
fi
TARGET="$KERL_BUILD_DIR/$1/release_$rel"
cd "$KERL_BUILD_DIR/$1/agner_$rel" && \
+ git pull &&
PATH="$KERL_BUILD_DIR/$1/otp_src_$rel/bin:$PATH" \
- AGNER_BIN="$TARGET/bin" AGNER_EXACT_PREFIX="$TARGET/lib" \
- ./agner install agner > /dev/null 2>&1
+ make > /dev/null 2>&1
if [ "$?" -eq 1 ]; then
return 1
fi
@@ -262,7 +262,6 @@ do_git_build()
git clone https://github.com/agner/agner.git agner_git > /dev/null 2>&1 && \
cd agner_git && \
PATH="$KERL_BUILD_DIR/$3/otp_src_git/bin:$PATH" make > /dev/null 2>&1 && \
- do_update_agner $3
if [ "$?" -eq 1 ]; then
echo "Agner install failed"; exit 1
fi
@@ -322,7 +321,6 @@ do_build()
git clone https://github.com/agner/agner.git agner_$1 > /dev/null 2>&1 && \
cd agner_$1 && \
PATH="$KERL_BUILD_DIR/$2/otp_src_$1/bin:$PATH" make > /dev/null 2>&1 && \
- do_update_agner $2
if [ "$?" -eq 1 ]; then
echo "Agner install failed"; exit 1
fi
@@ -406,8 +404,11 @@ fi
ACTIVATE
if agner_support $1; then
echo "Installing agner in $absdir..."
- cp -R "$KERL_BUILD_DIR/$1/release_$rel/lib/agner-@master" "$absdir/lib/"
- cd "$absdir/bin" && ln -s "$absdir/lib/agner-@master/bin/agner" agner
+ cp "$KERL_BUILD_DIR/$1/agner_$rel/agner" "$absdir/bin/"
+ if [ -n "$KERL_INSTALL_AGNERIZED_REBAR" ]; then
+ echo "Installing agnerized rebar in $absdir..."
+ cp "$KERL_BUILD_DIR/$1/agner_$rel/agner" "$absdir/bin/rebar"
+ fi
if [ -n "$KERL_AGNER_AUTOINSTALL" ]; then
for i in $KERL_AGNER_AUTOINSTALL; do
echo "Autoinstalling $i"