aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYurii Rashkovskii <[email protected]>2011-10-24 06:48:37 -0700
committerYurii Rashkovskii <[email protected]>2011-10-24 06:48:37 -0700
commit9a29fddfd768b01206844565d7a6a07830baa030 (patch)
tree510f8f667be3b5f9e52ed2c7527e76a168a3c31e
parentc753a124b880f0521b8d360d8dd62e104956649d (diff)
parent4ec6511e73da53bb8938340eecb0b64590448960 (diff)
downloadkerl-9a29fddfd768b01206844565d7a6a07830baa030.tar.gz
kerl-9a29fddfd768b01206844565d7a6a07830baa030.tar.bz2
kerl-9a29fddfd768b01206844565d7a6a07830baa030.zip
Merge pull request #14 from dizzyd/dss-html-docs
Add support for install HTML docs via KERL_INSTALL_HTMLDOCS
-rw-r--r--README.md6
-rwxr-xr-xkerl10
2 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9562747..e8c9815 100644
--- a/README.md
+++ b/README.md
@@ -182,6 +182,7 @@ You can set the following variables:
- KERL_SASL_STARTUP use SASL system startup instead of minimal
- KERL_USE_AUTOCONF use autoconf in the builds process
- KERL_INSTALL_MANPAGES if non-empty will install manpages
+- KERL_INSTALL_HTMLDOCS if non-empty will install HTML docs
Glossary
========
@@ -262,6 +263,11 @@ You can have SASL started automatically setting KERL_SASL_STARTUP=yes in your $H
You can have manpages installed automatically setting KERL_INSTALL_MANPAGES=yes in your $HOME/.kerlrc file or prepending it to the command line
+#### HTML docs installation
+
+You can have HTML docs installed automatically setting KERL_INSTALL_HTMLDOCS=yes in your $HOME/.kerlrc file or prepending it to the command line
+
+
update
------
diff --git a/kerl b/kerl
index 56852c3..02c36c2 100755
--- a/kerl
+++ b/kerl
@@ -446,6 +446,16 @@ ACTIVATE
echo "Extracting manpages"
cd "$absdir" && tar xfz "$KERL_DOWNLOAD_DIR/$FILENAME"
fi
+
+ if [ "$rel" != "git" -a -n "$KERL_INSTALL_HTMLDOCS" ]; then
+ echo "Fetching and installing HTML docs..."
+ FILENAME="otp_doc_html_$rel.tar.gz"
+ download "$FILENAME"
+ echo "Extracting HTML docs"
+ (cd "$absdir" && mkdir -p html && \
+ tar -C "$absdir/html" -xzf "$KERL_DOWNLOAD_DIR/$FILENAME")
+ fi
+
echo "You can activate this installation running the following command:"
echo ". $absdir/activate"
echo "Later on, you can leave the installation typing:"