aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsanmiguel <[email protected]>2017-05-23 22:47:28 +0200
committersanmiguel <[email protected]>2017-05-23 22:47:28 +0200
commit03656a045f137c49673194c867ab6977909741a1 (patch)
tree6c9efa0ad705048d974a58ded16ba132fd37d1a8
parent8408c54117dc003486eea1999e57d535dc2c4b2c (diff)
downloadkerl-gh-193-mtc-fix-doc-links.tar.gz
kerl-gh-193-mtc-fix-doc-links.tar.bz2
kerl-gh-193-mtc-fix-doc-links.zip
Conditionally switch where docs symlink togh-193-mtc-fix-doc-links
In some cases the docs are built without the 'erlang' subdir. Fixes #193
-rwxr-xr-xkerl9
1 files changed, 7 insertions, 2 deletions
diff --git a/kerl b/kerl
index bbb569c..dba0798 100755
--- a/kerl
+++ b/kerl
@@ -889,8 +889,13 @@ ACTIVATE_CSH
if [ -d "$DOC_DIR" ]; then
echo "Installing docs..."
cp $CP_OPT "$DOC_DIR/" "$absdir/lib"
- ln -s "$absdir/lib/erlang/man" "$absdir/man"
- ln -s "$absdir/lib/erlang/doc" "$absdir/html"
+ if [ -d "$absdir/lib/erlang/man" ]; then
+ ln -s "$absdir/lib/erlang/man" "$absdir/man"
+ ln -s "$absdir/lib/erlang/doc" "$absdir/html"
+ elif [ -d "$absdir/lib/man" ]; then
+ ln -s "$absdir/lib/man" "$absdir/man"
+ ln -s "$absdir/lib/doc" "$absdir/html"
+ fi
fi
else
if [ "$KERL_BUILD_BACKEND" = "tarball" ]; then