diff options
author | sanmiguel <[email protected]> | 2017-05-23 22:47:28 +0200 |
---|---|---|
committer | sanmiguel <[email protected]> | 2017-05-23 22:47:28 +0200 |
commit | 03656a045f137c49673194c867ab6977909741a1 (patch) | |
tree | 6c9efa0ad705048d974a58ded16ba132fd37d1a8 /kerl | |
parent | 8408c54117dc003486eea1999e57d535dc2c4b2c (diff) | |
download | kerl-03656a045f137c49673194c867ab6977909741a1.tar.gz kerl-03656a045f137c49673194c867ab6977909741a1.tar.bz2 kerl-03656a045f137c49673194c867ab6977909741a1.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
Diffstat (limited to 'kerl')
-rwxr-xr-x | kerl | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |