]> git.eshelyaron.com Git - emacs.git/commitdiff
Misc fixes for make uninstall
authorGlenn Morris <rgm@gnu.org>
Fri, 26 Oct 2012 07:32:40 +0000 (00:32 -0700)
committerGlenn Morris <rgm@gnu.org>
Fri, 26 Oct 2012 07:32:40 +0000 (00:32 -0700)
* 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.

ChangeLog
Makefile.in

index 14a4c4cdfc00f05ba2ce03c9410b3f4c78f12785..62a3eef7a69189ace5c635d4cd15e9a26154c396 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-26  Glenn Morris  <rgm@gnu.org>
+
+       * 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.
+
 2012-10-24  Glenn Morris  <rgm@gnu.org>
 
        * Makefile.in (install-etc, install-man):
index 20d680e06ab29365b0c2ed779c45c5305fafdea7..d7eec829495090d92214978d9149c1546ef62820 100644 (file)
@@ -685,21 +685,28 @@ uninstall:
        -rm -rf $(DESTDIR)${libexecdir}/emacs/${version}
        thisdir=`/bin/pwd`; \
        (info_misc=`cd doc/misc; ${MAKE} echo-info | sed '/ing directory/d'`; \
-         cd $(DESTDIR)${infodir} && \
-         for elt in ${INFO_NONMISC} $${info_misc}; do \
-           (cd $${thisdir}; \
-            $(INSTALL_INFO) --remove --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \
-           if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \
-              ext=.gz; else ext=; fi; \
-           rm -f $$elt$$ext $$elt-[1-9]$$ext $$elt-[1-9][0-9]$$ext; \
-         done;)
+        if cd $(DESTDIR)${infodir}; then \
+          for elt in ${INFO_NONMISC} $${info_misc}; do \
+            (cd $${thisdir}; \
+             $(INSTALL_INFO) --remove --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \
+            if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \
+               ext=.gz; else ext=; fi; \
+            rm -f $$elt$$ext $$elt-[1-9]$$ext $$elt-[1-9][0-9]$$ext; \
+          done; \
+        fi)
        (if [ -n "${GZIP_INFO}" ] && [ -n "${GZIP_PROG}" ]; then \
            ext=.gz; else ext=; fi; \
-        cd ${mansrcdir} && for page in *.1; do \
-          rm -f $(DESTDIR)${man1dir}/$$page$$ext; done )
-       (cd $(DESTDIR)${bindir}  && rm -f $(EMACSFULL) $(EMACS))
-       (cd $(DESTDIR)${icondir} && rm -f hicolor/*x*/apps/emacs.png hicolor/*x*/apps/emacs22.png hicolor/scalable/apps/emacs.svg hicolor/scalable/mimetypes/emacs-document.svg )
-       -rm -f $(DESTDIR)${desktopdir}/emacs.desktop
+        if cd ${mansrcdir}; then \
+          for page in *.1; do \
+            rm -f $(DESTDIR)${man1dir}/`echo "$${page}" | sed -e 's/\.1$$//' -e '$(TRANSFORM)'`.1$$ext; done; \
+        fi)
+       (cd $(DESTDIR)${bindir} && rm -f $(EMACSFULL) $(EMACS) || true)
+       (if cd $(DESTDIR)${icondir}; then \
+          rm -f hicolor/*x*/apps/`echo emacs | sed '$(TRANSFORM)'`.png \
+            hicolor/scalable/apps/`echo emacs | sed '$(TRANSFORM)'`.svg \
+            hicolor/scalable/mimetypes/`echo emacs-document | sed '$(TRANSFORM)'`.svg; \
+       fi)
+       -rm -f $(DESTDIR)${desktopdir}/`echo emacs | sed '$(TRANSFORM)'`.desktop
        for file in snake-scores tetris-scores; do \
          file=$(DESTDIR)${gamedir}/$${file}; \
          [ -s $${file} ] || rm -f $$file; \