]> code.delx.au - gnu-emacs/commitdiff
Small Makefile.in fixes for bug#8642.
authorGlenn Morris <rgm@gnu.org>
Thu, 12 May 2011 07:24:14 +0000 (00:24 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 May 2011 07:24:14 +0000 (00:24 -0700)
* Makefile.in (src, install-arch-indep, bootstrap-clean, check-declare):
Shell portability fixes.

ChangeLog
Makefile.in

index 044d48646eb7e3bbd6237112ec75424bafefbb71..e5253f3fa288d3b33bfe3e2aa281df95bc43021f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
+2011-05-12  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (src, install-arch-indep, bootstrap-clean)
+       (check-declare): Shell portability fixes.  (Bug#8642)
+
 2011-05-10  Jim Meyering  <meyering@redhat.com>
 
-       fix doubled-word typos
+       Fix doubled-word typos.
        * admin/notes/exit-value: the the -> the
        * doc/lispref/minibuf.texi: in in -> in
        * doc/misc/ede.texi: or or -> or
index a8cdd6a901d4bb08e74043c2cf7a91eec96b47bd..5127563be350a31fe3a9341dbc491b92f2d0cf61 100644 (file)
@@ -373,7 +373,7 @@ src: Makefile FRC
              LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS="$$boot"; \
        fi;
        if [ -r .bzr/checkout/dirstate ]; then                  \
-           vcswitness="$$(pwd)/.bzr/checkout/dirstate";        \
+           vcswitness="`pwd`/.bzr/checkout/dirstate";  \
        fi;                                                     \
        cd $@; $(MAKE) all $(MFLAGS)                           \
          CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
@@ -623,7 +623,7 @@ install-arch-indep: mkdir info install-etc
           fi; \
           cd ${srcdir}/info ; \
           for elt in $(INFO_FILES); do \
-             test "$(HAVE_MAKEINFO)" = "no" && ! test -e $$elt && continue; \
+             test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \
              for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \
                ${INSTALL_DATA} $$f $(DESTDIR)${infodir}/$$f; \
                chmod a+r $(DESTDIR)${infodir}/$$f; \
@@ -639,7 +639,7 @@ install-arch-indep: mkdir info install-etc
        if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \
        then \
          for elt in $(INFO_FILES); do \
-           test "$(HAVE_MAKEINFO)" = "no" && ! test -e $$elt && continue; \
+           test "$(HAVE_MAKEINFO)" = "no" && test ! -f $$elt && continue; \
            (cd $${thisdir}; \
             ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \
          done; \
@@ -829,7 +829,7 @@ bootstrap-clean: FRC
        -(cd doc/lispintro &&   $(MAKE) $(MFLAGS) maintainer-clean)
        (cd leim;     $(MAKE) $(MFLAGS) maintainer-clean)
        (cd lisp;     $(MAKE) $(MFLAGS) bootstrap-clean)
-       [ ! -e config.log ] || mv -f config.log config.log~
+       [ ! -f config.log ] || mv -f config.log config.log~
        ${top_bootclean}
 ## configure; make bootstrap replaces the real config.log from configure
 ## with the truncated one from config.status.  The former is more useful.
@@ -944,7 +944,7 @@ bootstrap: bootstrap-clean FRC
 .PHONY: check-declare
 
 check-declare:
-       @if [ ! -e $(srcdir)/src/emacs ]; then \
+       @if [ ! -f $(srcdir)/src/emacs ]; then \
          echo "You must build Emacs to use this command"; \
          exit 1; \
        fi