]> git.eshelyaron.com Git - emacs.git/commitdiff
Install emacs-mail.desktop and emacsclient-mail.desktop
authorPeter Oliver <git@mavit.org.uk>
Wed, 9 Jun 2021 11:51:15 +0000 (12:51 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 2 Jul 2021 11:09:16 +0000 (13:09 +0200)
* Makefile.in (install-etc): Install emacs-mail.desktop and
emacsclient-mail.desktop

Makefile.in

index 8c14c5cc7dbe1ea7cde0009cb9ab1b3fa28d1d86..97d954b6ce56a9fb436a29ddd8e9345731f90097 100644 (file)
@@ -742,6 +742,19 @@ install-etc:
          ${srcdir}/etc/emacsclient.desktop > $${tmp}; \
        ${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/$${client_name}.desktop"; \
        rm -f $${tmp}
+       tmp=etc/emacs-mail.tmpdesktop; rm -f $${tmp}; \
+       sed -e "/^Exec=emacs/ s/emacs/${EMACS_NAME}/" \
+         -e "/^Icon=emacs/ s/emacs/${EMACS_NAME}/" \
+         ${srcdir}/etc/emacs-mail.desktop > $${tmp}; \
+       ${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/${EMACS_NAME}-mail.desktop"; \
+       rm -f $${tmp}
+       tmp=etc/emacsclient-mail.tmpdesktop; rm -f $${tmp}; \
+       client_name=`echo emacsclient | sed '$(TRANSFORM)'`${EXEEXT}; \
+       sed -e "/^Exec=emacsclient/ s|emacsclient|${bindir}/$${client_name}|" \
+         -e "/^Icon=emacs/ s/emacs/${EMACS_NAME}/" \
+         ${srcdir}/etc/emacsclient-mail.desktop > $${tmp}; \
+       ${INSTALL_DATA} $${tmp} "$(DESTDIR)${desktopdir}/$${client_name}-mail.desktop"; \
+       rm -f $${tmp}
        umask 022; ${MKDIR_P} "$(DESTDIR)${metainfodir}"
        tmp=etc/emacs.tmpmetainfo; rm -f $${tmp}; \
        sed -e "s/emacs\.desktop/${EMACS_NAME}.desktop/" \