You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2015/07/24 21:21:48 UTC

lucy-clownfish git commit: Fix C installation script

Repository: lucy-clownfish
Updated Branches:
  refs/heads/0.4 85ceffbe7 -> 50f2df832


Fix C installation script

Support symbolic links in man page destination directory.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/50f2df83
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/50f2df83
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/50f2df83

Branch: refs/heads/0.4
Commit: 50f2df83221b35eae52852fd4cd22b649a2ea3d0
Parents: 85ceffb
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sat Jul 11 17:30:32 2015 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Fri Jul 24 21:20:13 2015 +0200

----------------------------------------------------------------------
 runtime/c/install.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/50f2df83/runtime/c/install.sh
----------------------------------------------------------------------
diff --git a/runtime/c/install.sh b/runtime/c/install.sh
index 2181ee5..cc0f340 100755
--- a/runtime/c/install.sh
+++ b/runtime/c/install.sh
@@ -103,7 +103,14 @@ for src in `find ../core -name '*.cf[hp]'`; do
 done
 
 # Install man pages.
-cp -R autogen/man "$prefix"
+mkdir -p "$prefix/man"
+# Resolve symbolic links.
+man_dir=$(cd "$prefix/man" && pwd -P)
+if [ -n "$man_dir" ]; then
+    cp -R autogen/man "$man_dir"
+else
+    echo "Warning: Invalid directory $prefix/man"
+fi
 
 # Create pkg-config file.
 mkdir -p "$prefix/lib/pkgconfig"