aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-10-23 00:20:57 -0700
committerGlenn Morris2013-10-23 00:20:57 -0700
commit48f73cfbf3d028b29655b207491e129607b88632 (patch)
treef42e0fea3821990415319897db31bc1917272e9a
parentb8e3b0a9ecb6c8ca1c2a4db189e92bcf08b5052d (diff)
downloademacs-48f73cfbf3d028b29655b207491e129607b88632.tar.gz
emacs-48f73cfbf3d028b29655b207491e129607b88632.zip
Progress towards allowing installation in directories with whitespace
* Makefile.in (COPYDESTS, write_subdir, install-arch-dep) (install-arch-indep, install-etcdoc, install-info, install-man) (install-etc, uninstall): Quote entities that might contain whitespace. * build-aux/update-subdirs: Handle whitespace in argument. Check cd return value. * doc/emacs/Makefile.in (install-dvi, install-html, install-pdf) (install-ps, uninstall-dvi, uninstall-html, uninstall-ps) (uninstall-pdf): Quote entities that might contain whitespace. * doc/lispintro/Makefile.in (install-dvi, install-html, install-pdf) (install-ps, uninstall-dvi, uninstall-html, uninstall-ps) (uninstall-pdf): Quote entities that might contain whitespace. * doc/lispref/Makefile.in (install-dvi, install-html, install-pdf) (install-ps, uninstall-dvi, uninstall-html, uninstall-ps) (uninstall-pdf): Quote entities that might contain whitespace. * doc/misc/Makefile.in (install-dvi, install-html, install-pdf) (install-ps, uninstall-dvi, uninstall-html, uninstall-ps) (uninstall-pdf): Quote entities that might contain whitespace. * lib-src/Makefile.in ($(DESTDIR)${archlibdir}, need-blessmail, install) (uninstall): Quote entities that might contain whitespace. * nt/Makefile.in ($(DESTDIR)${archlibdir}, install, uninstall): Quote entities that might contain whitespace.
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.in155
-rwxr-xr-xbuild-aux/update-subdirs2
-rw-r--r--doc/emacs/ChangeLog9
-rw-r--r--doc/emacs/Makefile.in28
-rw-r--r--doc/lispintro/ChangeLog6
-rw-r--r--doc/lispintro/Makefile.in28
-rw-r--r--doc/lispref/ChangeLog6
-rw-r--r--doc/lispref/Makefile.in28
-rw-r--r--doc/misc/ChangeLog6
-rw-r--r--doc/misc/Makefile.in28
-rw-r--r--lib-src/ChangeLog4
-rw-r--r--lib-src/Makefile.in44
-rw-r--r--nt/ChangeLog2
-rw-r--r--nt/Makefile.in16
15 files changed, 201 insertions, 168 deletions
diff --git a/ChangeLog b/ChangeLog
index afa99cd58ea..00658d0df88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
12013-10-23 Glenn Morris <rgm@gnu.org> 12013-10-23 Glenn Morris <rgm@gnu.org>
2 2
3 Progress towards allowing installation in directories with whitespace.
4 * Makefile.in (COPYDESTS, write_subdir, install-arch-dep)
5 (install-arch-indep, install-etcdoc, install-info, install-man)
6 (install-etc, uninstall): Quote entities that might contain whitespace.
7 * build-aux/update-subdirs: Handle whitespace in argument.
8 Check cd return value.
9
3 Make building in directories with whitespace possible. (Bug#15675) 10 Make building in directories with whitespace possible. (Bug#15675)
4 * configure.ac (srcdir): Don't make it absolute - abs_srcdir exists. 11 * configure.ac (srcdir): Don't make it absolute - abs_srcdir exists.
5 * Makefile.in (abs_srcdir): New, set by configure. 12 * Makefile.in (abs_srcdir): New, set by configure.
diff --git a/Makefile.in b/Makefile.in
index 25e170200a3..aa3ade158ed 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -284,7 +284,7 @@ SUBDIR_MAKEFILES = `echo $(SUBDIR_MAKEFILES_IN:.in=) | sed 's|$(srcdir)/||g'`
284# separately. quail appears twice because in out-of-tree builds, it 284# separately. quail appears twice because in out-of-tree builds, it
285# exists twice. 285# exists twice.
286COPYDIR = ${srcdir}/etc ${srcdir}/lisp ${srcdir}/leim/ja-dic ${srcdir}/leim/quail leim/quail 286COPYDIR = ${srcdir}/etc ${srcdir}/lisp ${srcdir}/leim/ja-dic ${srcdir}/leim/quail leim/quail
287COPYDESTS = $(DESTDIR)${etcdir} $(DESTDIR)${lispdir} $(DESTDIR)${leimdir}/ja-dic $(DESTDIR)${leimdir}/quail $(DESTDIR)${leimdir}/quail 287COPYDESTS = "$(DESTDIR)${etcdir}" "$(DESTDIR)${lispdir}" "$(DESTDIR)${leimdir}/ja-dic" "$(DESTDIR)${leimdir}/quail" "$(DESTDIR)${leimdir}/quail"
288 288
289all: ${SUBDIR} 289all: ${SUBDIR}
290 290
@@ -469,32 +469,32 @@ install: all install-arch-indep install-etcdoc install-arch-dep install-$(NTDIR)
469## world-readable. 469## world-readable.
470## TODO it might be good to warn about non-standard permissions of 470## TODO it might be good to warn about non-standard permissions of
471## pre-existing directories, but that does not seem easy. 471## pre-existing directories, but that does not seem easy.
472write_subdir=if [ -f $${subdir}/subdirs.el ]; \ 472write_subdir=if [ -f "$${subdir}/subdirs.el" ]; \
473 then true; \ 473 then true; \
474 else \ 474 else \
475 umask 022; \ 475 umask 022; \
476 ${MKDIR_P} $${subdir}; \ 476 ${MKDIR_P} "$${subdir}"; \
477 (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \ 477 (echo "(if (fboundp 'normal-top-level-add-subdirs-to-load-path)"; \
478 echo " (normal-top-level-add-subdirs-to-load-path))") \ 478 echo " (normal-top-level-add-subdirs-to-load-path))") \
479 > $${subdir}/subdirs.el; \ 479 > "$${subdir}/subdirs.el"; \
480 fi 480 fi
481 481
482### Install the executables that were compiled specifically for this machine. 482### Install the executables that were compiled specifically for this machine.
483### We do install-arch-indep first because the executable needs the 483### We do install-arch-indep first because the executable needs the
484### Lisp files and DOC file to work properly. 484### Lisp files and DOC file to work properly.
485install-arch-dep: src install-arch-indep install-etcdoc install-$(NTDIR) 485install-arch-dep: src install-arch-indep install-etcdoc install-$(NTDIR)
486 umask 022; ${MKDIR_P} $(DESTDIR)${bindir} 486 umask 022; ${MKDIR_P} "$(DESTDIR)${bindir}"
487 cd lib-src && \ 487 cd lib-src && \
488 $(MAKE) install $(MFLAGS) prefix=${prefix} \ 488 $(MAKE) install $(MFLAGS) prefix=${prefix} \
489 exec_prefix=${exec_prefix} bindir=${bindir} \ 489 exec_prefix=${exec_prefix} bindir=${bindir} \
490 libexecdir=${libexecdir} archlibdir=${archlibdir} \ 490 libexecdir=${libexecdir} archlibdir=${archlibdir} \
491 INSTALL_STRIP=${INSTALL_STRIP} 491 INSTALL_STRIP=${INSTALL_STRIP}
492 if test "${ns_self_contained}" = "no"; then \ 492 if test "${ns_self_contained}" = "no"; then \
493 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} $(DESTDIR)${bindir}/$(EMACSFULL) || exit 1 ; \ 493 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} "$(DESTDIR)${bindir}/$(EMACSFULL)" || exit 1 ; \
494 chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) || true; \ 494 chmod 1755 "$(DESTDIR)${bindir}/$(EMACSFULL)" || true; \
495 if test "x${NO_BIN_LINK}" = x; then \ 495 if test "x${NO_BIN_LINK}" = x; then \
496 rm -f $(DESTDIR)${bindir}/$(EMACS) ; \ 496 rm -f "$(DESTDIR)${bindir}/$(EMACS)" ; \
497 cd $(DESTDIR)${bindir} && $(LN_S_FILEONLY) $(EMACSFULL) $(EMACS); \ 497 cd "$(DESTDIR)${bindir}" && $(LN_S_FILEONLY) $(EMACSFULL) $(EMACS); \
498 fi; \ 498 fi; \
499 else \ 499 else \
500 subdir=${ns_appresdir}/site-lisp; \ 500 subdir=${ns_appresdir}/site-lisp; \
@@ -568,62 +568,63 @@ install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTR
568 $(set_installuser); \ 568 $(set_installuser); \
569 for dir in ${COPYDIR} ; do \ 569 for dir in ${COPYDIR} ; do \
570 [ -d $${dir} ] || exit 1 ; \ 570 [ -d $${dir} ] || exit 1 ; \
571 dest=$$1 ; shift ; \ 571 dest="$$1" ; shift ; \
572 [ -d $${dest} ] && \ 572 [ -d "$${dest}" ] && \
573 [ "`cd $${dest} && /bin/pwd`" = "`cd $${dir} && /bin/pwd`" ] && \ 573 [ "`cd \"$${dest}\" && /bin/pwd`" = "`cd $${dir} && /bin/pwd`" ] && \
574 continue ; \ 574 continue ; \
575 if [ "$${dir}" = "leim/quail" ]; then \ 575 if [ "$${dir}" = "leim/quail" ]; then \
576 [ "`cd $${dir} && /bin/pwd`" = "`cd ${srcdir}/leim/quail && /bin/pwd`" ] && \ 576 [ "`cd $${dir} && /bin/pwd`" = "`cd ${srcdir}/leim/quail && /bin/pwd`" ] && \
577 continue ; \ 577 continue ; \
578 else \ 578 else \
579 rm -rf $${dest} ; \ 579 rm -rf "$${dest}" ; \
580 umask 022; ${MKDIR_P} $${dest} ; \ 580 umask 022; ${MKDIR_P} "$${dest}" ; \
581 fi ; \ 581 fi ; \
582 echo "Copying $${dir} to $${dest}..." ; \ 582 echo "Copying $${dir} to $${dest}..." ; \
583 (cd $${dir}; tar -chf - . ) \ 583 (cd $${dir}; tar -chf - . ) \
584 | (cd $${dest}; umask 022; \ 584 | (cd "$${dest}"; umask 022; \
585 tar -xvf - && cat > /dev/null) || exit 1; \ 585 tar -xvf - && cat > /dev/null) || exit 1; \
586 if [ "$${dir}" = "${srcdir}/etc" ]; then \ 586 if [ "$${dir}" = "${srcdir}/etc" ]; then \
587 rm -f $${dest}/DOC* ; \ 587 rm -f "$${dest}/DOC"* ; \
588 rm -f $${dest}/refcards/*.aux $${dest}/refcards/*.dvi; \ 588 rm -f "$${dest}/refcards"/*.aux "$${dest}/refcards"/*.dvi; \
589 rm -f $${dest}/refcards/*.log; \ 589 rm -f "$${dest}/refcards"/*.log; \
590 else true; \ 590 else true; \
591 fi; \ 591 fi; \
592 for subdir in `find $${dest} -type d -print` ; do \ 592 (cd "$${dest}" || exit 1; \
593 chmod a+rx $${subdir} ; \ 593 for subdir in `find . -type d -print` ; do \
594 rm -f $${subdir}/.gitignore ; \ 594 chmod a+rx $${subdir} ; \
595 rm -f $${subdir}/.arch-inventory ; \ 595 rm -f $${subdir}/.gitignore ; \
596 rm -f $${subdir}/.DS_Store ; \ 596 rm -f $${subdir}/.arch-inventory ; \
597 rm -f $${subdir}/\#* ; \ 597 rm -f $${subdir}/.DS_Store ; \
598 rm -f $${subdir}/.\#* ; \ 598 rm -f $${subdir}/\#* ; \
599 rm -f $${subdir}/*~ ; \ 599 rm -f $${subdir}/.\#* ; \
600 rm -f $${subdir}/*.orig ; \ 600 rm -f $${subdir}/*~ ; \
601 rm -f $${subdir}/ChangeLog* ; \ 601 rm -f $${subdir}/*.orig ; \
602 [ "$${dir}" != "${srcdir}/etc" ] && \ 602 rm -f $${subdir}/ChangeLog* ; \
603 rm -f $${subdir}/[mM]akefile*[.-]in $${subdir}/[mM]akefile ; \ 603 [ "$${dir}" != "${srcdir}/etc" ] && \
604 done ; \ 604 rm -f $${subdir}/[mM]akefile*[.-]in $${subdir}/[mM]akefile ; \
605 find $${dest} -exec chown $${installuser} {} ';' ;\ 605 done ); \
606 find "$${dest}" -exec chown $${installuser} {} ';' ;\
606 done 607 done
607 -rm -f $(DESTDIR)${leimdir}/leim-list.el 608 -rm -f "$(DESTDIR)${leimdir}/leim-list.el"
608 ${INSTALL_DATA} leim/leim-list.el $(DESTDIR)${leimdir}/leim-list.el 609 ${INSTALL_DATA} leim/leim-list.el "$(DESTDIR)${leimdir}/leim-list.el"
609 -rm -f $(DESTDIR)${lispdir}/subdirs.el 610 -rm -f "$(DESTDIR)${lispdir}/subdirs.el"
610 umask 022; $(srcdir)/build-aux/update-subdirs $(DESTDIR)${lispdir} 611 umask 022; $(srcdir)/build-aux/update-subdirs "$(DESTDIR)${lispdir}"
611 subdir=$(DESTDIR)${datadir}/emacs/${version}/site-lisp ; \ 612 subdir="$(DESTDIR)${datadir}/emacs/${version}/site-lisp" ; \
612 ${write_subdir} 613 ${write_subdir}
613 subdir=$(DESTDIR)${datadir}/emacs/site-lisp ; \ 614 subdir="$(DESTDIR)${datadir}/emacs/site-lisp" ; \
614 ${write_subdir} || true 615 ${write_subdir} || true
615 [ -z "${GZIP_PROG}" ] || \ 616 [ -z "${GZIP_PROG}" ] || \
616 ( echo "Compressing *.el ..." ; \ 617 ( echo "Compressing *.el ..." ; \
617 unset CDPATH; \ 618 unset CDPATH; \
618 thisdir=`/bin/pwd`; \ 619 thisdir=`/bin/pwd`; \
619 for dir in $(DESTDIR)${lispdir} $(DESTDIR)${leimdir}; do \ 620 for dir in "$(DESTDIR)${lispdir}" "$(DESTDIR)${leimdir}"; do \
620 cd "$${thisdir}" ; \ 621 cd "$${thisdir}" ; \
621 cd $${dir} || exit 1 ; \ 622 cd "$${dir}" || exit 1 ; \
622 for f in `find . -name "*.elc" -print`; do \ 623 for f in `find . -name "*.elc" -print`; do \
623 ${GZIP_PROG} -9n `echo $$f|sed 's/.elc$$/.el/'` ; \ 624 ${GZIP_PROG} -9n "`echo \"$$f\" | sed 's/.elc$$/.el/'`" ; \
624 done ; \ 625 done ; \
625 done ) 626 done )
626 -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} ${COPYDESTS} 627 -chmod -R a+r "$(DESTDIR)${datadir}/emacs/${version}" ${COPYDESTS}
627 628
628## The above chmods are needed because "umask 022; tar ..." is not 629## The above chmods are needed because "umask 022; tar ..." is not
629## guaranteed to do the right thing; eg if we are root and tar is 630## guaranteed to do the right thing; eg if we are root and tar is
@@ -633,40 +634,40 @@ install-arch-indep: lisp leim install-info install-man ${INSTALL_ARCH_INDEP_EXTR
633## installed etc/ directory, so we need it to run before this does. 634## installed etc/ directory, so we need it to run before this does.
634install-etcdoc: src install-arch-indep 635install-etcdoc: src install-arch-indep
635 -unset CDPATH; \ 636 -unset CDPATH; \
636 umask 022; ${MKDIR_P} $(DESTDIR)${etcdocdir} ; \ 637 umask 022; ${MKDIR_P} "$(DESTDIR)${etcdocdir}" ; \
637 if [ "`cd ./etc; /bin/pwd`" != "`cd $(DESTDIR)${etcdocdir}; /bin/pwd`" ]; \ 638 if [ "`cd ./etc; /bin/pwd`" != "`cd \"$(DESTDIR)${etcdocdir}\"; /bin/pwd`" ]; \
638 then \ 639 then \
639 docfile="DOC"; \ 640 docfile="DOC"; \
640 echo "Copying etc/$${docfile} to $(DESTDIR)${etcdocdir} ..." ; \ 641 echo "Copying etc/$${docfile} to $(DESTDIR)${etcdocdir} ..." ; \
641 ${INSTALL_DATA} etc/$${docfile} $(DESTDIR)${etcdocdir}/$${docfile}; \ 642 ${INSTALL_DATA} etc/$${docfile} "$(DESTDIR)${etcdocdir}/$${docfile}"; \
642 $(set_installuser); \ 643 $(set_installuser); \
643 chown $${installuser} $(DESTDIR)${etcdocdir}/$${docfile} || true ; \ 644 chown $${installuser} "$(DESTDIR)${etcdocdir}/$${docfile}" || true ; \
644 else true; fi 645 else true; fi
645 646
646install-info: info 647install-info: info
647 umask 022; ${MKDIR_P} $(DESTDIR)${infodir} 648 umask 022; ${MKDIR_P} "$(DESTDIR)${infodir}"
648 -unset CDPATH; \ 649 -unset CDPATH; \
649 thisdir=`/bin/pwd`; \ 650 thisdir=`/bin/pwd`; \
650 if [ "`cd ${srcdir}/info && /bin/pwd`" = "`cd $(DESTDIR)${infodir} && /bin/pwd`" ]; then \ 651 if [ "`cd ${srcdir}/info && /bin/pwd`" = "`cd \"$(DESTDIR)${infodir}\" && /bin/pwd`" ]; then \
651 true; \ 652 true; \
652 else \ 653 else \
653 (cd "$(DESTDIR)${infodir}"; \ 654 (cd "$(DESTDIR)${infodir}"; \
654 [ -f dir ] || \ 655 [ -f dir ] || \
655 (cd "$${thisdir}"; \ 656 (cd "$${thisdir}"; \
656 ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir) ); \ 657 ${INSTALL_DATA} ${srcdir}/info/dir "$(DESTDIR)${infodir}/dir") ); \
657 info_misc=`cd doc/misc && $(QUIET_SUBMAKE) $(MAKE) -s echo-info`; \ 658 info_misc=`cd doc/misc && $(QUIET_SUBMAKE) $(MAKE) -s echo-info`; \
658 cd ${srcdir}/info ; \ 659 cd ${srcdir}/info ; \
659 for elt in ${INFO_NONMISC} $${info_misc}; do \ 660 for elt in ${INFO_NONMISC} $${info_misc}; do \
660 test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \ 661 test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \
661 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \ 662 for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \
662 (cd "$${thisdir}"; \ 663 (cd "$${thisdir}"; \
663 ${INSTALL_DATA} ${srcdir}/info/$$f $(DESTDIR)${infodir}/$$f); \ 664 ${INSTALL_DATA} ${srcdir}/info/$$f "$(DESTDIR)${infodir}/$$f"); \
664 [ -n "${GZIP_PROG}" ] || continue ; \ 665 [ -n "${GZIP_PROG}" ] || continue ; \
665 rm -f $(DESTDIR)${infodir}/$$f.gz; \ 666 rm -f "$(DESTDIR)${infodir}/$$f.gz"; \
666 ${GZIP_PROG} -9n $(DESTDIR)${infodir}/$$f; \ 667 ${GZIP_PROG} -9n "$(DESTDIR)${infodir}/$$f"; \
667 done; \ 668 done; \
668 (cd "$${thisdir}"; \ 669 (cd "$${thisdir}"; \
669 ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ 670 ${INSTALL_INFO} --info-dir="$(DESTDIR)${infodir}" "$(DESTDIR)${infodir}/$$elt"); \
670 done; \ 671 done; \
671 fi 672 fi
672 673
@@ -677,16 +678,16 @@ install-info: info
677## ctags.1 is compressed or not. "gzip -f" is another option here, 678## ctags.1 is compressed or not. "gzip -f" is another option here,
678## but not sure if portable. 679## but not sure if portable.
679install-man: 680install-man:
680 umask 022; ${MKDIR_P} $(DESTDIR)${man1dir} 681 umask 022; ${MKDIR_P} "$(DESTDIR)${man1dir}"
681 thisdir=`/bin/pwd`; \ 682 thisdir=`/bin/pwd`; \
682 cd ${mansrcdir}; \ 683 cd ${mansrcdir}; \
683 for page in *.1; do \ 684 for page in *.1; do \
684 dest=`echo "$${page}" | sed -e 's/\.1$$//' -e '$(TRANSFORM)'`.1; \ 685 dest=`echo "$${page}" | sed -e 's/\.1$$//' -e '$(TRANSFORM)'`.1; \
685 (cd "$${thisdir}"; \ 686 (cd "$${thisdir}"; \
686 ${INSTALL_DATA} ${mansrcdir}/$${page} $(DESTDIR)${man1dir}/$${dest}); \ 687 ${INSTALL_DATA} ${mansrcdir}/$${page} "$(DESTDIR)${man1dir}/$${dest}"); \
687 [ -n "${GZIP_PROG}" ] || continue ; \ 688 [ -n "${GZIP_PROG}" ] || continue ; \
688 rm -f $(DESTDIR)${man1dir}/$${dest}.gz; \ 689 rm -f "$(DESTDIR)${man1dir}/$${dest}.gz"; \
689 ${GZIP_PROG} -9n $(DESTDIR)${man1dir}/$${dest} || true; \ 690 ${GZIP_PROG} -9n "$(DESTDIR)${man1dir}/$${dest}" || true; \
690 done 691 done
691 692
692## Install those items from etc/ that need to end up elsewhere. 693## Install those items from etc/ that need to end up elsewhere.
@@ -696,25 +697,25 @@ install-man:
696EMACS_ICON=emacs 697EMACS_ICON=emacs
697 698
698install-etc: 699install-etc:
699 umask 022; ${MKDIR_P} $(DESTDIR)${desktopdir} 700 umask 022; ${MKDIR_P} "$(DESTDIR)${desktopdir}"
700 tmp=etc/emacs.tmpdesktop; rm -f $${tmp}; \ 701 tmp=etc/emacs.tmpdesktop; rm -f $${tmp}; \
701 emacs_name=`echo emacs | sed '$(TRANSFORM)'`; \ 702 emacs_name=`echo emacs | sed '$(TRANSFORM)'`; \
702 sed -e "/^Exec=emacs/ s/emacs/$${emacs_name}/" \ 703 sed -e "/^Exec=emacs/ s/emacs/$${emacs_name}/" \
703 -e "/^Icon=emacs/ s/emacs/$${emacs_name}/" \ 704 -e "/^Icon=emacs/ s/emacs/$${emacs_name}/" \
704 ${srcdir}/etc/emacs.desktop > $${tmp}; \ 705 ${srcdir}/etc/emacs.desktop > $${tmp}; \
705 ${INSTALL_DATA} $${tmp} $(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop; \ 706 ${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop"; \
706 rm -f $${tmp} 707 rm -f $${tmp}
707 thisdir=`/bin/pwd`; \ 708 thisdir=`/bin/pwd`; \
708 cd ${iconsrcdir} || exit 1; umask 022 ; \ 709 cd ${iconsrcdir} || exit 1; umask 022 ; \
709 for dir in */*/apps */*/mimetypes; do \ 710 for dir in */*/apps */*/mimetypes; do \
710 [ -d $${dir} ] || continue ; \ 711 [ -d $${dir} ] || continue ; \
711 ( cd "$${thisdir}"; ${MKDIR_P} $(DESTDIR)${icondir}/$${dir} ) ; \ 712 ( cd "$${thisdir}"; ${MKDIR_P} "$(DESTDIR)${icondir}/$${dir}" ) ; \
712 for icon in $${dir}/${EMACS_ICON}[.-]*; do \ 713 for icon in $${dir}/${EMACS_ICON}[.-]*; do \
713 [ -r $${icon} ] || continue ; \ 714 [ -r $${icon} ] || continue ; \
714 ext=`echo "$${icon}" | sed -e 's|.*\.||'`; \ 715 ext=`echo "$${icon}" | sed -e 's|.*\.||'`; \
715 dest=`echo "$${icon}" | sed -e 's|.*/||' -e "s|\.$${ext}$$||" -e 's/$(EMACS_ICON)/emacs/' -e '$(TRANSFORM)'`.$${ext} ; \ 716 dest=`echo "$${icon}" | sed -e 's|.*/||' -e "s|\.$${ext}$$||" -e 's/$(EMACS_ICON)/emacs/' -e '$(TRANSFORM)'`.$${ext} ; \
716 ( cd "$${thisdir}"; \ 717 ( cd "$${thisdir}"; \
717 ${INSTALL_DATA} ${iconsrcdir}/$${icon} $(DESTDIR)${icondir}/$${dir}/$${dest} ) \ 718 ${INSTALL_DATA} ${iconsrcdir}/$${icon} "$(DESTDIR)${icondir}/$${dir}/$${dest}" ) \
718 || exit 1; \ 719 || exit 1; \
719 done ; \ 720 done ; \
720 done 721 done
@@ -734,26 +735,26 @@ uninstall: uninstall-$(NTDIR) uninstall-doc
734 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir} 735 bindir=${bindir} libexecdir=${libexecdir} archlibdir=${archlibdir}
735 736
736 -unset CDPATH; \ 737 -unset CDPATH; \
737 for dir in $(DESTDIR)${lispdir} $(DESTDIR)${etcdir} ; do \ 738 for dir in "$(DESTDIR)${lispdir}" "$(DESTDIR)${etcdir}" ; do \
738 if [ -d $${dir} ]; then \ 739 if [ -d "$${dir}" ]; then \
739 case "`cd $${dir} ; /bin/pwd`" in \ 740 case `cd "$${dir}" ; /bin/pwd` in \
740 "`cd ${srcdir} ; /bin/pwd`"* ) ;; \ 741 "`cd ${srcdir} ; /bin/pwd`"* ) ;; \
741 * ) rm -rf $${dir} ;; \ 742 * ) rm -rf "$${dir}" ;; \
742 esac ; \ 743 esac ; \
743 case $${dir} in \ 744 case "$${dir}" in \
744 $(DESTDIR)${datadir}/emacs/${version}/* ) \ 745 "$(DESTDIR)${datadir}/emacs/${version}"/* ) \
745 rm -rf $(DESTDIR)${datadir}/emacs/${version} \ 746 rm -rf "$(DESTDIR)${datadir}/emacs/${version}" \
746 ;; \ 747 ;; \
747 esac ; \ 748 esac ; \
748 fi ; \ 749 fi ; \
749 done 750 done
750 -rm -rf $(DESTDIR)${libexecdir}/emacs/${version} 751 -rm -rf "$(DESTDIR)${libexecdir}/emacs/${version}"
751 thisdir=`/bin/pwd`; \ 752 thisdir=`/bin/pwd`; \
752 (info_misc=`cd doc/misc && $(QUIET_SUBMAKE) $(MAKE) -s echo-info`; \ 753 (info_misc=`cd doc/misc && $(QUIET_SUBMAKE) $(MAKE) -s echo-info`; \
753 if cd $(DESTDIR)${infodir}; then \ 754 if cd "$(DESTDIR)${infodir}"; then \
754 for elt in ${INFO_NONMISC} $${info_misc}; do \ 755 for elt in ${INFO_NONMISC} $${info_misc}; do \
755 (cd "$${thisdir}"; \ 756 (cd "$${thisdir}"; \
756 $(INSTALL_INFO) --remove --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \ 757 $(INSTALL_INFO) --remove --info-dir="$(DESTDIR)${infodir}" "$(DESTDIR)${infodir}/$$elt"); \
757 if [ -n "${GZIP_PROG}" ]; then \ 758 if [ -n "${GZIP_PROG}" ]; then \
758 ext=.gz; else ext=; fi; \ 759 ext=.gz; else ext=; fi; \
759 rm -f $$elt$$ext $$elt-[1-9]$$ext $$elt-[1-9][0-9]$$ext; \ 760 rm -f $$elt$$ext $$elt-[1-9]$$ext $$elt-[1-9][0-9]$$ext; \
@@ -763,18 +764,18 @@ uninstall: uninstall-$(NTDIR) uninstall-doc
763 ext=.gz; else ext=; fi; \ 764 ext=.gz; else ext=; fi; \
764 if cd ${mansrcdir}; then \ 765 if cd ${mansrcdir}; then \
765 for page in *.1; do \ 766 for page in *.1; do \
766 rm -f $(DESTDIR)${man1dir}/`echo "$${page}" | sed -e 's/\.1$$//' -e '$(TRANSFORM)'`.1$$ext; done; \ 767 rm -f "$(DESTDIR)${man1dir}"/`echo "$${page}" | sed -e 's/\.1$$//' -e '$(TRANSFORM)'`.1$$ext; done; \
767 fi) 768 fi)
768 (cd $(DESTDIR)${bindir} && rm -f $(EMACSFULL) $(EMACS) || true) 769 (cd "$(DESTDIR)${bindir}" && rm -f $(EMACSFULL) $(EMACS) || true)
769 (if cd $(DESTDIR)${icondir}; then \ 770 (if cd "$(DESTDIR)${icondir}"; then \
770 rm -f hicolor/*x*/apps/${EMACS_NAME}.png \ 771 rm -f hicolor/*x*/apps/${EMACS_NAME}.png \
771 hicolor/scalable/apps/${EMACS_NAME}.svg \ 772 hicolor/scalable/apps/${EMACS_NAME}.svg \
772 hicolor/scalable/mimetypes/`echo emacs-document | sed '$(TRANSFORM)'`.svg; \ 773 hicolor/scalable/mimetypes/`echo emacs-document | sed '$(TRANSFORM)'`.svg; \
773 fi) 774 fi)
774 -rm -f $(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop 775 -rm -f "$(DESTDIR)${desktopdir}/${EMACS_NAME}.desktop"
775 for file in snake-scores tetris-scores; do \ 776 for file in snake-scores tetris-scores; do \
776 file=$(DESTDIR)${gamedir}/$${file}; \ 777 file="$(DESTDIR)${gamedir}/$${file}"; \
777 [ -s $${file} ] || rm -f $$file; \ 778 [ -s "$${file}" ] || rm -f "$$file"; \
778 done 779 done
779 780
780### Windows-specific uninstall target for removing programs produced 781### Windows-specific uninstall target for removing programs produced
diff --git a/build-aux/update-subdirs b/build-aux/update-subdirs
index 3c429b8b5e4..fb271f76ddd 100755
--- a/build-aux/update-subdirs
+++ b/build-aux/update-subdirs
@@ -20,7 +20,7 @@
20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. 20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21 21
22 22
23cd $1 23cd "$1" || exit 1
24for file in *; do 24for file in *; do
25 case $file in 25 case $file in
26 *.elc | *.el | term | RCS | CVS | Old | . | .. | =* | *~ | *.orig | *.rej) 26 *.elc | *.el | term | RCS | CVS | Old | . | .. | =* | *~ | *.orig | *.rej)
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index f36097e5ed6..eb82535031f 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,6 +1,13 @@
12013-10-23 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (install-dvi, install-html, install-pdf)
4 (install-ps, uninstall-dvi, uninstall-html, uninstall-ps)
5 (uninstall-pdf): Quote entities that might contain whitespace.
6
12013-10-20 Xue Fuqiao <xfq.free@gmail.com> 72013-10-20 Xue Fuqiao <xfq.free@gmail.com>
2 8
3 * custom.texi (Init Syntax, Terminal Init, Terminal Init): Remove @refill. 9 * custom.texi (Init Syntax, Terminal Init, Terminal Init):
10 Remove @refill.
4 11
52013-10-13 Glenn Morris <rgm@gnu.org> 122013-10-13 Glenn Morris <rgm@gnu.org>
6 13
diff --git a/doc/emacs/Makefile.in b/doc/emacs/Makefile.in
index bf9f8152ad4..9c4a90db4aa 100644
--- a/doc/emacs/Makefile.in
+++ b/doc/emacs/Makefile.in
@@ -229,21 +229,21 @@ dist:
229.PHONY: install-dvi install-html install-pdf install-ps install-doc 229.PHONY: install-dvi install-html install-pdf install-ps install-doc
230 230
231install-dvi: dvi 231install-dvi: dvi
232 umask 022; $(MKDIR_P) $(DESTDIR)$(dvidir) 232 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
233 $(INSTALL_DATA) $(DVI_TARGETS) $(DESTDIR)$(dvidir) 233 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
234install-html: html 234install-html: html
235 umask 022; $(MKDIR_P) $(DESTDIR)$(htmldir) 235 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
236 $(INSTALL_DATA) $(HTML_TARGETS) $(DESTDIR)$(htmldir) 236 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
237install-pdf: pdf 237install-pdf: pdf
238 umask 022;$(MKDIR_P) $(DESTDIR)$(pdfdir) 238 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
239 $(INSTALL_DATA) $(PDF_TARGETS) $(DESTDIR)$(pdfdir) 239 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
240install-ps: ps 240install-ps: ps
241 umask 022; $(MKDIR_P) $(DESTDIR)$(psdir) 241 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
242 for file in $(PS_TARGETS); do \ 242 for file in $(PS_TARGETS); do \
243 $(INSTALL_DATA) $${file} $(DESTDIR)$(psdir); \ 243 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
244 [ -n "${GZIP_PROG}" ] || continue; \ 244 [ -n "${GZIP_PROG}" ] || continue; \
245 rm -f $(DESTDIR)$(psdir)/$${file}.gz; \ 245 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
246 ${GZIP_PROG} -9n $(DESTDIR)$(psdir)/$${file}; \ 246 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
247 done 247 done
248 248
249## Top-level Makefile installs the info pages. 249## Top-level Makefile installs the info pages.
@@ -254,20 +254,20 @@ install-doc: install-dvi install-html install-pdf install-ps
254 254
255uninstall-dvi: 255uninstall-dvi:
256 for file in $(DVI_TARGETS); do \ 256 for file in $(DVI_TARGETS); do \
257 rm -f $(DESTDIR)$(dvidir)/$${file}; \ 257 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
258 done 258 done
259uninstall-html: 259uninstall-html:
260 for file in $(HTML_TARGETS); do \ 260 for file in $(HTML_TARGETS); do \
261 rm -f $(DESTDIR)$(htmldir)/$${file}; \ 261 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
262 done 262 done
263uninstall-ps: 263uninstall-ps:
264 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \ 264 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
265 for file in $(PS_TARGETS); do \ 265 for file in $(PS_TARGETS); do \
266 rm -f $(DESTDIR)$(psdir)/$${file}$${ext}; \ 266 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
267 done 267 done
268uninstall-pdf: 268uninstall-pdf:
269 for file in $(PDF_TARGETS); do \ 269 for file in $(PDF_TARGETS); do \
270 rm -f $(DESTDIR)$(pdfdir)/$${file}; \ 270 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
271 done 271 done
272 272
273uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps 273uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
diff --git a/doc/lispintro/ChangeLog b/doc/lispintro/ChangeLog
index ec082eecb52..2e6164968c3 100644
--- a/doc/lispintro/ChangeLog
+++ b/doc/lispintro/ChangeLog
@@ -1,3 +1,9 @@
12013-10-23 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (install-dvi, install-html, install-pdf)
4 (install-ps, uninstall-dvi, uninstall-html, uninstall-ps)
5 (uninstall-pdf): Quote entities that might contain whitespace.
6
12013-09-01 Glenn Morris <rgm@gnu.org> 72013-09-01 Glenn Morris <rgm@gnu.org>
2 8
3 * emacs-lisp-intro.texi (beginning-of-buffer complete): 9 * emacs-lisp-intro.texi (beginning-of-buffer complete):
diff --git a/doc/lispintro/Makefile.in b/doc/lispintro/Makefile.in
index 363e12215b3..9a643c004ed 100644
--- a/doc/lispintro/Makefile.in
+++ b/doc/lispintro/Makefile.in
@@ -145,21 +145,21 @@ dist:
145.PHONY: install-dvi install-html install-pdf install-ps install-doc 145.PHONY: install-dvi install-html install-pdf install-ps install-doc
146 146
147install-dvi: dvi 147install-dvi: dvi
148 umask 022; $(MKDIR_P) $(DESTDIR)$(dvidir) 148 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
149 $(INSTALL_DATA) $(DVI_TARGETS) $(DESTDIR)$(dvidir) 149 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
150install-html: html 150install-html: html
151 umask 022; $(MKDIR_P) $(DESTDIR)$(htmldir) 151 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
152 $(INSTALL_DATA) $(HTML_TARGETS) $(DESTDIR)$(htmldir) 152 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
153install-pdf: pdf 153install-pdf: pdf
154 umask 022;$(MKDIR_P) $(DESTDIR)$(pdfdir) 154 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
155 $(INSTALL_DATA) $(PDF_TARGETS) $(DESTDIR)$(pdfdir) 155 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
156install-ps: ps 156install-ps: ps
157 umask 022; $(MKDIR_P) $(DESTDIR)$(psdir) 157 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
158 for file in $(PS_TARGETS); do \ 158 for file in $(PS_TARGETS); do \
159 $(INSTALL_DATA) $${file} $(DESTDIR)$(psdir); \ 159 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
160 [ -n "${GZIP_PROG}" ] || continue; \ 160 [ -n "${GZIP_PROG}" ] || continue; \
161 rm -f $(DESTDIR)$(psdir)/$${file}.gz; \ 161 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
162 ${GZIP_PROG} -9n $(DESTDIR)$(psdir)/$${file}; \ 162 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
163 done 163 done
164 164
165## Top-level Makefile installs the info pages. 165## Top-level Makefile installs the info pages.
@@ -170,20 +170,20 @@ install-doc: install-dvi install-html install-pdf install-ps
170 170
171uninstall-dvi: 171uninstall-dvi:
172 for file in $(DVI_TARGETS); do \ 172 for file in $(DVI_TARGETS); do \
173 rm -f $(DESTDIR)$(dvidir)/$${file}; \ 173 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
174 done 174 done
175uninstall-html: 175uninstall-html:
176 for file in $(HTML_TARGETS); do \ 176 for file in $(HTML_TARGETS); do \
177 rm -f $(DESTDIR)$(htmldir)/$${file}; \ 177 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
178 done 178 done
179uninstall-ps: 179uninstall-ps:
180 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \ 180 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
181 for file in $(PS_TARGETS); do \ 181 for file in $(PS_TARGETS); do \
182 rm -f $(DESTDIR)$(psdir)/$${file}$${ext}; \ 182 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
183 done 183 done
184uninstall-pdf: 184uninstall-pdf:
185 for file in $(PDF_TARGETS); do \ 185 for file in $(PDF_TARGETS); do \
186 rm -f $(DESTDIR)$(pdfdir)/$${file}; \ 186 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
187 done 187 done
188 188
189uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps 189uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 42659150058..7efe70f683d 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,9 @@
12013-10-23 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (install-dvi, install-html, install-pdf)
4 (install-ps, uninstall-dvi, uninstall-html, uninstall-ps)
5 (uninstall-pdf): Quote entities that might contain whitespace.
6
12013-10-19 Xue Fuqiao <xfq.free@gmail.com> 72013-10-19 Xue Fuqiao <xfq.free@gmail.com>
2 8
3 * display.texi (Face Attributes): Add indexes for the ‘:box’ face attribute. 9 * display.texi (Face Attributes): Add indexes for the ‘:box’ face attribute.
diff --git a/doc/lispref/Makefile.in b/doc/lispref/Makefile.in
index 164646ac433..e2cc9ac088a 100644
--- a/doc/lispref/Makefile.in
+++ b/doc/lispref/Makefile.in
@@ -201,21 +201,21 @@ dist:
201.PHONY: install-dvi install-html install-pdf install-ps install-doc 201.PHONY: install-dvi install-html install-pdf install-ps install-doc
202 202
203install-dvi: dvi 203install-dvi: dvi
204 umask 022; $(MKDIR_P) $(DESTDIR)$(dvidir) 204 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
205 $(INSTALL_DATA) $(DVI_TARGETS) $(DESTDIR)$(dvidir) 205 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
206install-html: html 206install-html: html
207 umask 022; $(MKDIR_P) $(DESTDIR)$(htmldir) 207 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
208 $(INSTALL_DATA) $(HTML_TARGETS) $(DESTDIR)$(htmldir) 208 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
209install-pdf: pdf 209install-pdf: pdf
210 umask 022;$(MKDIR_P) $(DESTDIR)$(pdfdir) 210 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
211 $(INSTALL_DATA) $(PDF_TARGETS) $(DESTDIR)$(pdfdir) 211 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
212install-ps: ps 212install-ps: ps
213 umask 022; $(MKDIR_P) $(DESTDIR)$(psdir) 213 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
214 for file in $(PS_TARGETS); do \ 214 for file in $(PS_TARGETS); do \
215 $(INSTALL_DATA) $${file} $(DESTDIR)$(psdir); \ 215 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
216 [ -n "${GZIP_PROG}" ] || continue; \ 216 [ -n "${GZIP_PROG}" ] || continue; \
217 rm -f $(DESTDIR)$(psdir)/$${file}.gz; \ 217 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
218 ${GZIP_PROG} -9n $(DESTDIR)$(psdir)/$${file}; \ 218 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
219 done 219 done
220 220
221## Top-level Makefile installs the info pages. 221## Top-level Makefile installs the info pages.
@@ -226,20 +226,20 @@ install-doc: install-dvi install-html install-pdf install-ps
226 226
227uninstall-dvi: 227uninstall-dvi:
228 for file in $(DVI_TARGETS); do \ 228 for file in $(DVI_TARGETS); do \
229 rm -f $(DESTDIR)$(dvidir)/$${file}; \ 229 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
230 done 230 done
231uninstall-html: 231uninstall-html:
232 for file in $(HTML_TARGETS); do \ 232 for file in $(HTML_TARGETS); do \
233 rm -f $(DESTDIR)$(htmldir)/$${file}; \ 233 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
234 done 234 done
235uninstall-ps: 235uninstall-ps:
236 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \ 236 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
237 for file in $(PS_TARGETS); do \ 237 for file in $(PS_TARGETS); do \
238 rm -f $(DESTDIR)$(psdir)/$${file}$${ext}; \ 238 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
239 done 239 done
240uninstall-pdf: 240uninstall-pdf:
241 for file in $(PDF_TARGETS); do \ 241 for file in $(PDF_TARGETS); do \
242 rm -f $(DESTDIR)$(pdfdir)/$${file}; \ 242 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
243 done 243 done
244 244
245uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps 245uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 76d3954cfcf..3563c1e768d 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,9 @@
12013-10-23 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (install-dvi, install-html, install-pdf)
4 (install-ps, uninstall-dvi, uninstall-html, uninstall-ps)
5 (uninstall-pdf): Quote entities that might contain whitespace.
6
12013-10-17 Jay Belanger <jay.p.belanger@gmail.com> 72013-10-17 Jay Belanger <jay.p.belanger@gmail.com>
2 8
3 * calc.el (Data Type Formats): Don't specify the size at 9 * calc.el (Data Type Formats): Don't specify the size at
diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in
index 30fc4953172..f43520e97a4 100644
--- a/doc/misc/Makefile.in
+++ b/doc/misc/Makefile.in
@@ -877,21 +877,21 @@ dist:
877.PHONY: install-dvi install-html install-pdf install-ps install-doc 877.PHONY: install-dvi install-html install-pdf install-ps install-doc
878 878
879install-dvi: dvi 879install-dvi: dvi
880 umask 022; $(MKDIR_P) $(DESTDIR)$(dvidir) 880 umask 022; $(MKDIR_P) "$(DESTDIR)$(dvidir)"
881 $(INSTALL_DATA) $(DVI_TARGETS) $(DESTDIR)$(dvidir) 881 $(INSTALL_DATA) $(DVI_TARGETS) "$(DESTDIR)$(dvidir)"
882install-html: html 882install-html: html
883 umask 022; $(MKDIR_P) $(DESTDIR)$(htmldir) 883 umask 022; $(MKDIR_P) "$(DESTDIR)$(htmldir)"
884 $(INSTALL_DATA) $(HTML_TARGETS) $(DESTDIR)$(htmldir) 884 $(INSTALL_DATA) $(HTML_TARGETS) "$(DESTDIR)$(htmldir)"
885install-pdf: pdf 885install-pdf: pdf
886 umask 022;$(MKDIR_P) $(DESTDIR)$(pdfdir) 886 umask 022;$(MKDIR_P) "$(DESTDIR)$(pdfdir)"
887 $(INSTALL_DATA) $(PDF_TARGETS) $(DESTDIR)$(pdfdir) 887 $(INSTALL_DATA) $(PDF_TARGETS) "$(DESTDIR)$(pdfdir)"
888install-ps: ps 888install-ps: ps
889 umask 022; $(MKDIR_P) $(DESTDIR)$(psdir) 889 umask 022; $(MKDIR_P) "$(DESTDIR)$(psdir)"
890 for file in $(PS_TARGETS); do \ 890 for file in $(PS_TARGETS); do \
891 $(INSTALL_DATA) $${file} $(DESTDIR)$(psdir); \ 891 $(INSTALL_DATA) $${file} "$(DESTDIR)$(psdir)"; \
892 [ -n "${GZIP_PROG}" ] || continue; \ 892 [ -n "${GZIP_PROG}" ] || continue; \
893 rm -f $(DESTDIR)$(psdir)/$${file}.gz; \ 893 rm -f "$(DESTDIR)$(psdir)/$${file}.gz"; \
894 ${GZIP_PROG} -9n $(DESTDIR)$(psdir)/$${file}; \ 894 ${GZIP_PROG} -9n "$(DESTDIR)$(psdir)/$${file}"; \
895 done 895 done
896 896
897## Top-level Makefile installs the info pages. 897## Top-level Makefile installs the info pages.
@@ -903,20 +903,20 @@ install-doc: install-dvi install-html install-pdf install-ps
903 903
904uninstall-dvi: 904uninstall-dvi:
905 for file in $(DVI_TARGETS); do \ 905 for file in $(DVI_TARGETS); do \
906 rm -f $(DESTDIR)$(dvidir)/$${file}; \ 906 rm -f "$(DESTDIR)$(dvidir)/$${file}"; \
907 done 907 done
908uninstall-html: 908uninstall-html:
909 for file in $(HTML_TARGETS); do \ 909 for file in $(HTML_TARGETS); do \
910 rm -f $(DESTDIR)$(htmldir)/$${file}; \ 910 rm -f "$(DESTDIR)$(htmldir)/$${file}"; \
911 done 911 done
912uninstall-ps: 912uninstall-ps:
913 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \ 913 ext= ; [ -n "${GZIP_PROG}" ] && ext=.gz; \
914 for file in $(PS_TARGETS); do \ 914 for file in $(PS_TARGETS); do \
915 rm -f $(DESTDIR)$(psdir)/$${file}$${ext}; \ 915 rm -f "$(DESTDIR)$(psdir)/$${file}$${ext}"; \
916 done 916 done
917uninstall-pdf: 917uninstall-pdf:
918 for file in $(PDF_TARGETS); do \ 918 for file in $(PDF_TARGETS); do \
919 rm -f $(DESTDIR)$(pdfdir)/$${file}; \ 919 rm -f "$(DESTDIR)$(pdfdir)/$${file}"; \
920 done 920 done
921 921
922uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps 922uninstall-doc: uninstall-dvi uninstall-html uninstall-pdf uninstall-ps
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 46faf95c0c0..fd4209ab225 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,7 +1,7 @@
12013-10-23 Glenn Morris <rgm@gnu.org> 12013-10-23 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in ($(DESTDIR)${archlibdir}): 3 * Makefile.in ($(DESTDIR)${archlibdir}, need-blessmail, install)
4 Quote entities that might contain whitespace. 4 (uninstall): Quote entities that might contain whitespace.
5 5
62013-10-10 Glenn Morris <rgm@gnu.org> 62013-10-10 Glenn Morris <rgm@gnu.org>
7 7
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 01c03e162cc..3aff16fed76 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -214,10 +214,10 @@ blessmail:
214need-blessmail: blessmail 214need-blessmail: blessmail
215 @if [ `wc -l <blessmail` != 2 ] ; then \ 215 @if [ `wc -l <blessmail` != 2 ] ; then \
216 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ 216 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
217 echo Assuming $$dir is really the mail spool directory, you should; \ 217 echo "Assuming $$dir is really the mail spool directory, you should"; \
218 echo run lib-src/blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT}; \ 218 echo "run lib-src/blessmail $(DESTDIR)${archlibdir}/movemail${EXEEXT}"; \
219 echo as root, to give movemail${EXEEXT} appropriate permissions.; \ 219 echo "as root, to give movemail${EXEEXT} appropriate permissions."; \
220 echo Do that after running make install.; \ 220 echo "Do that after running make install."; \
221 fi 221 fi
222 222
223## This is the target invoked by the top-level Makefile. 223## This is the target invoked by the top-level Makefile.
@@ -231,23 +231,23 @@ maybe-blessmail: $(BLESSMAIL_TARGET)
231$(DESTDIR)${archlibdir}: all 231$(DESTDIR)${archlibdir}: all
232 @echo 232 @echo
233 @echo "Installing utilities run internally by Emacs." 233 @echo "Installing utilities run internally by Emacs."
234 umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir} 234 umask 022; ${MKDIR_P} "$(DESTDIR)${archlibdir}"
235 if [ "`cd $(DESTDIR)${archlibdir} && /bin/pwd`" != "`/bin/pwd`" ]; then \ 235 if [ "`cd \"$(DESTDIR)${archlibdir}\" && /bin/pwd`" != "`/bin/pwd`" ]; then \
236 for file in ${UTILITIES}; do \ 236 for file in ${UTILITIES}; do \
237 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ 237 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file "$(DESTDIR)${archlibdir}/$$file" ; \
238 done ; \ 238 done ; \
239 fi 239 fi
240 umask 022; ${MKDIR_P} $(DESTDIR)${gamedir}; \ 240 umask 022; ${MKDIR_P} "$(DESTDIR)${gamedir}"; \
241 touch $(DESTDIR)${gamedir}/snake-scores; \ 241 touch "$(DESTDIR)${gamedir}/snake-scores"; \
242 touch $(DESTDIR)${gamedir}/tetris-scores 242 touch "$(DESTDIR)${gamedir}/tetris-scores"
243 -if chown ${gameuser} $(DESTDIR)${archlibdir}/update-game-score${EXEEXT} && chmod u+s $(DESTDIR)${archlibdir}/update-game-score${EXEEXT}; then \ 243 -if chown ${gameuser} "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}" && chmod u+s "$(DESTDIR)${archlibdir}/update-game-score${EXEEXT}"; then \
244 chown ${gameuser} $(DESTDIR)${gamedir}; \ 244 chown ${gameuser} "$(DESTDIR)${gamedir}"; \
245 chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ 245 chmod u=rwx,g=rwx,o=rx "$(DESTDIR)${gamedir}"; \
246 fi 246 fi
247 if [ "`cd $(DESTDIR)${archlibdir} && /bin/pwd`" \ 247 if [ "`cd \"$(DESTDIR)${archlibdir}\" && /bin/pwd`" \
248 != "`cd ${srcdir} && /bin/pwd`" ]; then \ 248 != "`cd ${srcdir} && /bin/pwd`" ]; then \
249 for file in ${SCRIPTS}; do \ 249 for file in ${SCRIPTS}; do \
250 $(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \ 250 $(INSTALL_SCRIPT) ${srcdir}/$$file "$(DESTDIR)${archlibdir}/$$file"; \
251 done ; \ 251 done ; \
252 fi 252 fi
253 253
@@ -257,23 +257,23 @@ $(DESTDIR)${archlibdir}: all
257install: $(DESTDIR)${archlibdir} 257install: $(DESTDIR)${archlibdir}
258 @echo 258 @echo
259 @echo "Installing utilities for users to run." 259 @echo "Installing utilities for users to run."
260 umask 022; ${MKDIR_P} $(DESTDIR)${bindir} 260 umask 022; ${MKDIR_P} "$(DESTDIR)${bindir}"
261 for file in ${INSTALLABLES} ; do \ 261 for file in ${INSTALLABLES} ; do \
262 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ 262 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
263 done 263 done
264 for file in ${INSTALLABLE_SCRIPTS} ; do \ 264 for file in ${INSTALLABLE_SCRIPTS} ; do \
265 $(INSTALL_SCRIPT) ${srcdir}/$${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ 265 $(INSTALL_SCRIPT) ${srcdir}/$${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed '$(TRANSFORM)'` ; \
266 done 266 done
267 267
268uninstall: 268uninstall:
269 for file in ${INSTALLABLES}; do \ 269 for file in ${INSTALLABLES}; do \
270 rm -f $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ 270 rm -f "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
271 done 271 done
272 for file in ${INSTALLABLE_SCRIPTS}; do \ 272 for file in ${INSTALLABLE_SCRIPTS}; do \
273 rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ 273 rm -f "$(DESTDIR)${bindir}"/`echo $${file} | sed '$(TRANSFORM)'` ; \
274 done 274 done
275 if [ -d $(DESTDIR)${archlibdir} ]; then \ 275 if [ -d "$(DESTDIR)${archlibdir}" ]; then \
276 (cd $(DESTDIR)${archlibdir} && rm -f ${UTILITIES} ${SCRIPTS}) \ 276 (cd "$(DESTDIR)${archlibdir}" && rm -f ${UTILITIES} ${SCRIPTS}) \
277 fi 277 fi
278 278
279mostlyclean: 279mostlyclean:
diff --git a/nt/ChangeLog b/nt/ChangeLog
index a04a67b7ce9..53381f1e8b5 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,6 +1,6 @@
12013-10-23 Glenn Morris <rgm@gnu.org> 12013-10-23 Glenn Morris <rgm@gnu.org>
2 2
3 * Makefile.in ($(DESTDIR)${archlibdir}): 3 * Makefile.in ($(DESTDIR)${archlibdir}, install, uninstall):
4 Quote entities that might contain whitespace. 4 Quote entities that might contain whitespace.
5 5
62013-10-14 Eli Zaretskii <eliz@gnu.org> 62013-10-14 Eli Zaretskii <eliz@gnu.org>
diff --git a/nt/Makefile.in b/nt/Makefile.in
index cc640152cb6..c29cc7e91ec 100644
--- a/nt/Makefile.in
+++ b/nt/Makefile.in
@@ -141,10 +141,10 @@ all: ${EXE_FILES}
141$(DESTDIR)${archlibdir}: all 141$(DESTDIR)${archlibdir}: all
142 @echo 142 @echo
143 @echo "Installing utilities run internally by Emacs." 143 @echo "Installing utilities run internally by Emacs."
144 umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir} 144 umask 022; ${MKDIR_P} "$(DESTDIR)${archlibdir}"
145 if [ "`cd $(DESTDIR)${archlibdir} && /bin/pwd`" != "`/bin/pwd`" ]; then \ 145 if [ "`cd \"$(DESTDIR)${archlibdir}\" && /bin/pwd`" != "`/bin/pwd`" ]; then \
146 for file in ${UTILITIES}; do \ 146 for file in ${UTILITIES}; do \
147 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ 147 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file "$(DESTDIR)${archlibdir}/$$file" ; \
148 done ; \ 148 done ; \
149 fi 149 fi
150 150
@@ -154,17 +154,17 @@ $(DESTDIR)${archlibdir}: all
154install: $(DESTDIR)${archlibdir} 154install: $(DESTDIR)${archlibdir}
155 @echo 155 @echo
156 @echo "Installing utilities for users to run." 156 @echo "Installing utilities for users to run."
157 umask 022; ${MKDIR_P} $(DESTDIR)${bindir} 157 umask 022; ${MKDIR_P} "$(DESTDIR)${bindir}"
158 for file in ${INSTALLABLES} ; do \ 158 for file in ${INSTALLABLES} ; do \
159 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ 159 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
160 done 160 done
161 161
162uninstall: 162uninstall:
163 for file in ${INSTALLABLES}; do \ 163 for file in ${INSTALLABLES}; do \
164 rm -f $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \ 164 rm -f "$(DESTDIR)${bindir}"/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
165 done 165 done
166 if [ -d $(DESTDIR)${archlibdir} ]; then \ 166 if [ -d "$(DESTDIR)${archlibdir}" ]; then \
167 (cd $(DESTDIR)${archlibdir} && rm -f ${UTILITIES}) \ 167 (cd "$(DESTDIR)${archlibdir}" && rm -f ${UTILITIES}) \
168 fi 168 fi
169 169
170mostlyclean: 170mostlyclean: