diff options
-rwxr-xr-x | kerl | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |