aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Allen <[email protected]>2017-05-24 01:32:20 -0500
committerGitHub <[email protected]>2017-05-24 01:32:20 -0500
commit7efeb2bd4675b6250b4b724beba9ac250fee932c (patch)
tree3726013fcd2f130fbef79ef56eeac54f1bdff2ef
parent86899523d693f82fdfa2159ea9dea0647f4ac3d0 (diff)
parent03656a045f137c49673194c867ab6977909741a1 (diff)
downloadkerl-7efeb2bd4675b6250b4b724beba9ac250fee932c.tar.gz
kerl-7efeb2bd4675b6250b4b724beba9ac250fee932c.tar.bz2
kerl-7efeb2bd4675b6250b4b724beba9ac250fee932c.zip
Merge pull request #206 from kerl/gh-193-mtc-fix-doc-links
Conditionally switch where docs symlink to
-rwxr-xr-xkerl9
1 files changed, 7 insertions, 2 deletions
diff --git a/kerl b/kerl
index 918e123..000a09a 100755
--- a/kerl
+++ b/kerl
@@ -890,8 +890,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