comparison Makefile.in @ 81236:6e5cac7193a6

(install-arch-indep): Install only the DOC- file specific to the build, if possible, rather than DOC-*.
author Glenn Morris <rgm@gnu.org>
date Thu, 07 Jun 2007 08:02:18 +0000
parents a268dce1f560
children f9b37dd1363e
comparison
equal deleted inserted replaced
81235:a618e1dc2490 81236:6e5cac7193a6
411 411
412 ## FIXME 412 ## FIXME
413 ## Should only install the DOC- file appropriate to this build, not DOC-*. 413 ## Should only install the DOC- file appropriate to this build, not DOC-*.
414 ## http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-01/msg00417.html 414 ## http://lists.gnu.org/archive/html/emacs-pretest-bug/2007-01/msg00417.html
415 ## (fix available for consideration post-release). 415 ## (fix available for consideration post-release).
416
417 ## We install only the relevant DOC file if possible
418 ## (ie DOC-${version}.buildnumber), otherwise DOC-${version}*.
416 419
417 ## If people complain about the h flag in tar command, take that out. 420 ## If people complain about the h flag in tar command, take that out.
418 ## That flag is also used in leim/Makefile.in 421 ## That flag is also used in leim/Makefile.in
419 install-arch-indep: mkdir info 422 install-arch-indep: mkdir info
420 -set ${COPYDESTS} ; \ 423 -set ${COPYDESTS} ; \
472 fi 475 fi
473 -chmod a+r $(DESTDIR)${datadir}/emacs/site-lisp/subdirs.el 476 -chmod a+r $(DESTDIR)${datadir}/emacs/site-lisp/subdirs.el
474 -unset CDPATH; \ 477 -unset CDPATH; \
475 if [ `(cd ./etc; /bin/pwd)` != `(cd $(DESTDIR)${docdir}; /bin/pwd)` ]; \ 478 if [ `(cd ./etc; /bin/pwd)` != `(cd $(DESTDIR)${docdir}; /bin/pwd)` ]; \
476 then \ 479 then \
477 echo "Copying etc/DOC-* to $(DESTDIR)${docdir} ..." ; \ 480 fullversion=`./src/emacs --version | sed -n '1 s/GNU Emacs *//p'`; \
478 (cd ./etc; tar -chf - DOC*) \ 481 if [ -f "./etc/DOC-$${fullversion}" ]; \
482 then \
483 docfile="DOC-$${fullversion}"; \
484 else \
485 docfile="DOC-${version}*"; \
486 fi; \
487 echo "Copying etc/$${docfile} to $(DESTDIR)${docdir} ..." ; \
488 (cd ./etc; tar -chf - $${docfile}) \
479 |(cd $(DESTDIR)${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ 489 |(cd $(DESTDIR)${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \
480 (cd $(DESTDIR)$(docdir); chown $${LOGNAME:-$$USERNAME} DOC*; chmod a+r DOC*; \ 490 (cd $(DESTDIR)$(docdir); chown $${LOGNAME:-$$USERNAME} DOC*; chmod a+r DOC*; \
481 if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \ 491 if test "`echo DOC-*`" != "DOC-*"; then rm DOC; fi); \
482 else true; fi 492 else true; fi
483 -unset CDPATH; \ 493 -unset CDPATH; \