aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvax Software <[email protected]>2011-06-28 18:59:28 +0200
committerEvax Software <[email protected]>2011-06-28 19:05:14 +0200
commitf2c9fd68276597c3cf6dd3cd5fd469c36f126d1e (patch)
tree3226a26aa7a6d91c8626b7c7e3d25704a0c9a636
parent300caab5eacf3435f8d78fc7bbb5a3d812c363d9 (diff)
downloadkerl-f2c9fd68276597c3cf6dd3cd5fd469c36f126d1e.tar.gz
kerl-f2c9fd68276597c3cf6dd3cd5fd469c36f126d1e.tar.bz2
kerl-f2c9fd68276597c3cf6dd3cd5fd469c36f126d1e.zip
Add support for agnerized rebar installation
-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"