]> git.eshelyaron.com Git - emacs.git/commitdiff
Program name transformations should not be applied to $EXEEXT.
authorGlenn Morris <rgm@gnu.org>
Fri, 26 Oct 2012 07:39:47 +0000 (00:39 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 26 Oct 2012 07:39:47 +0000 (00:39 -0700)
* Makefile.in (EMACS, EMACSFULL):
* lib-src/Makefile.in (install, uninstall):
Transformations should not be applied to $EXEEXT.

ChangeLog
Makefile.in
lib-src/ChangeLog
lib-src/Makefile.in

index 62a3eef7a69189ace5c635d4cd15e9a26154c396..c9498dbfeb124265d28801c45569cbd6927b4728 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-10-26  Glenn Morris  <rgm@gnu.org>
 
+       * Makefile.in (EMACS, EMACSFULL): Transformations should not be
+       applied to $EXEEXT.
+
        * Makefile.in (uninstall): Don't abort if some directories are missing.
        Apply transformation rules to manual pages, desktop and icon files.
        No more emacs22 icons to uninstall.
index d7eec829495090d92214978d9149c1546ef62820..29aed2b0be88a3901c1d18a657f9f4f279179dae 100644 (file)
@@ -259,8 +259,8 @@ GZIP_INFO = @GZIP_INFO@
 TRANSFORM = @program_transform_name@
 
 # What emacs should be called when installed.
-EMACS = `echo emacs${EXEEXT} | sed '$(TRANSFORM)'`
-EMACSFULL = `echo emacs-${version}${EXEEXT} | sed '$(TRANSFORM)'`
+EMACS = `echo emacs | sed '$(TRANSFORM)'`${EXEEXT}
+EMACSFULL = `echo emacs-${version} | sed '$(TRANSFORM)'`${EXEEXT}
 
 # Subdirectories to make recursively.
 SUBDIR = lib lib-src src lisp leim
index c88b467ee29dba2846adba0fb93b2b29d7a198df..6b23c040b17e7c233c5c55fb6c00916932860035 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-26  Glenn Morris  <rgm@gnu.org>
+
+       * Makefile.in (install, uninstall): Transformations should not be
+       applied to $EXEEXT.
+
 2012-10-23  Eli Zaretskii  <eliz@gnu.org>
 
        * makefile.w32-in (lisp2): Add cp51932.el and eucjp-ms.el, to
index c5acca288561dfd3c1d934499be9e30966e7fbca..dcd7123bb26737df62e682d65a3d44b8726f45c6 100644 (file)
@@ -244,17 +244,19 @@ install: $(DESTDIR)${archlibdir}
        @echo "Installing utilities for users to run."
        umask 022; ${MKDIR_P} $(DESTDIR)${bindir}
        for file in ${INSTALLABLES} ; do \
-         $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
+         $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
        done
        for file in ${INSTALLABLE_SCRIPTS} ; do \
          $(INSTALL_SCRIPT) ${srcdir}/$${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`  ; \
        done
 
 uninstall:
-       (cd $(DESTDIR)${bindir}; \
-       for file in ${INSTALLABLES} ${INSTALLABLE_SCRIPTS}; do \
+       for file in ${INSTALLABLES}; do \
+         rm -f $(DESTDIR)${bindir}/`echo $${file} | sed -e 's/${EXEEXT}$$//' -e '$(TRANSFORM)'`${EXEEXT} ; \
+       done
+       for file in ${INSTALLABLE_SCRIPTS}; do \
          rm -f $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
-       done)
+       done
        if [ -d $(DESTDIR)${archlibdir} ]; then \
          (cd $(DESTDIR)${archlibdir} && \
           rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}) \