aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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