changeset 47038:c317a55fcc93

(install-arch-indep): Do not remove DOC file when it is the only DOC file installed; this is the case when CANNOT_DUMP is defined. From Joe Buehler (tiny change).
author Kim F. Storm <storm@cua.dk>
date Mon, 26 Aug 2002 10:11:44 +0000
parents d6ea7c29ce97
children f89ca946d5c2
files Makefile.in
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Mon Aug 26 10:10:42 2002 +0000
+++ b/Makefile.in	Mon Aug 26 10:11:44 2002 +0000
@@ -436,7 +436,8 @@
 	   echo "Copying etc/DOC-* to ${docdir} ..." ; \
 	   (cd ./etc; tar -chf - DOC*) \
 	     |(cd ${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
-	   (cd $(docdir); chown $${LOGNAME} DOC*; chmod a+r DOC*; rm DOC); \
+	   (cd $(docdir); chown $${LOGNAME} DOC*; chmod a+r DOC*; \
+	    if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \
 	else true; fi
 	-unset CDPATH; \
 	if [ -r ./lisp ] \