* Makefile.in (install-arch-dep): Replace last user of MV_DIRS.
authorGlenn Morris <rgm@gnu.org>
Tue, 15 May 2012 19:13:17 +0000 (15:13 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 15 May 2012 19:13:17 +0000 (15:13 -0400)
ChangeLog
Makefile.in

index 0c92193..9bf19a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,6 @@
 2012-05-15  Glenn Morris  <rgm@gnu.org>
 
-       * Makefile.in (install-arch-dep): Replace use of MV_DIRS with info,
-       and with libexec.
+       * Makefile.in (install-arch-dep): Replace use of MV_DIRS.
 
        * Makefile.in (install-arch-dep): Do not hard-code version number.
 
index 0b1fb77..b0ea80e 100644 (file)
@@ -451,8 +451,6 @@ $(srcdir)/src/stamp-h.in: $(AUTOCONF_INPUTS)
 install: all install-arch-indep install-arch-dep install-leim blessmail
        @true
 
-MV_DIRS = for i in $$dir; do rm -fr `basename "$$i"` ; mv "$$i" . ; done
-
 ### Install the executables that were compiled specifically for this machine.
 ### It would be nice to do something for a parallel make
 ### to ensure that install-arch-indep finishes before this starts.
@@ -470,7 +468,9 @@ install-arch-dep: mkdir
        -ln $(DESTDIR)${bindir}/$(EMACSFULL) $(DESTDIR)${bindir}/$(EMACS)
        if test "${ns_appresdir}" != ""; then \
          ( cd ${ns_appresdir} ; \
-           if test -d share/emacs ; then dir=share/emacs/*/*; $(MV_DIRS); fi;\
+           if test -d share/emacs ; then \
+             for dir in share/emacs/${version}/*; do \
+               rm -fr `basename "$$dir"`; mv "$$dir" . ; done; fi ; \
            if test -d share/info ; then rm -fr info; mv share/info . ; fi ; \
            rm -fr share ) ; \
          ( if cd ${ns_appbindir}/libexec ; then \