Skip to content

Commit

Permalink
Merge pull request #14 from dizzyd/dss-html-docs
Browse files Browse the repository at this point in the history
Add support for install HTML docs via KERL_INSTALL_HTMLDOCS
  • Loading branch information
scalone-cw committed May 9, 2024
2 parents 8bfbfc9 + d9eda92 commit b8e3f5a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
========
Expand Down Expand Up @@ -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
------

Expand Down
10 changes: 10 additions & 0 deletions kerl
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit b8e3f5a

Please sign in to comment.