about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorYasuhiro KIMURA <yasu@utahime.org>2020-06-02 03:23:45 +0900
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-06-03 01:15:22 +0000
commita44f44d6e661925531ef637e79aeb64ee13c93cf (patch)
treed6f753a9f968d5c30a818a4498c480b4b93c00db /configure.ac
parentc479107f70d75ec4522cb9d97c2c178ead4607dd (diff)
downloadzsh-a44f44d6e661925531ef637e79aeb64ee13c93cf.tar.gz
zsh-a44f44d6e661925531ef637e79aeb64ee13c93cf.tar.xz
zsh-a44f44d6e661925531ef637e79aeb64ee13c93cf.zip
45950: Fix 'make install' in out-of-tree tarball builds.
See workers/45936 for the failure mode and workers/45943 for an earlier
revision of the patch.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e78ebf86b..995f010b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3178,6 +3178,22 @@ AC_CONFIG_COMMANDS([stamp-h], [echo >stamp-h])
 
 AC_OUTPUT
 
+dnl Copy pre-built man pages and help files, for tarball out-of-tree builds.
+for manpage in `cd ${srcdir} && echo Doc/*.1`; do
+  if test x"$manpage" != x"Doc/*.1" && ! test -e "${manpage}"; then
+    cp ${srcdir}/${manpage} ./Doc/
+  fi
+done
+if ! test -e Doc/help.txt; then
+  cp ${srcdir}/Doc/help.txt ./Doc/
+fi
+mkdir -p ./Doc/help
+for helpfile in `cd ${srcdir} && echo Doc/help/*`; do
+  if test x"$helpfile" != x"Doc/help/*" && ! test -e "${helpfile}"; then
+    cp ${srcdir}/${helpfile} ./Doc/help/
+  fi
+done
+
 eval "zshbin1=${bindir}"
 eval "zshbin2=${zshbin1}"
 eval "zshman1=${mandir}"