Repository: lucy Updated Branches: refs/heads/0.4 7beddbcfb -> e43b48311
Fix C installation script Support symbolic links in man page destination directory. Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/1aecf7a9 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/1aecf7a9 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/1aecf7a9 Branch: refs/heads/0.4 Commit: 1aecf7a9055e57b978895d7cc38053b22ddfe7d6 Parents: 7beddbc Author: Nick Wellnhofer <[email protected]> Authored: Sat Jul 11 17:56:27 2015 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Fri Jul 24 21:03:58 2015 +0200 ---------------------------------------------------------------------- c/install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/1aecf7a9/c/install.sh ---------------------------------------------------------------------- diff --git a/c/install.sh b/c/install.sh index 94f28d7..eab7673 100755 --- a/c/install.sh +++ b/c/install.sh @@ -99,7 +99,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"
