]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix sed expression in install-etc make target
authorUlrich Müller <ulm@gentoo.org>
Wed, 8 Mar 2023 18:48:33 +0000 (19:48 +0100)
committerUlrich Müller <ulm@gentoo.org>
Wed, 8 Mar 2023 18:48:33 +0000 (19:48 +0100)
* Makefile.in (install-etc): Fix sed expression for emacsclient
desktop files.  (Bug#62045)

Makefile.in

index 2fb7754d683dd9218809b790a533669487ffdfe1..4f2f2f15c97a7cfc134e776764ff74123bb41442 100644 (file)
@@ -841,7 +841,7 @@ install-etc:
        rm -f $${tmp}
        tmp=etc/emacsclient.tmpdesktop; rm -f $${tmp}; \
        client_name=`echo emacsclient | sed '$(TRANSFORM)'`${EXEEXT}; \
-       sed -e "/^Exec=emacsclient/ s|emacsclient|${bindir}/$${client_name}|" \
+       sed -e "/^Exec=/ s|emacsclient|${bindir}/$${client_name}|" \
          -e "/^Icon=emacs/ s/emacs/${EMACS_NAME}/" \
          $(USE_STARTUP_NOTIFICATION_SED_CMD) \
          ${srcdir}/etc/emacsclient.desktop > $${tmp}; \
@@ -855,7 +855,7 @@ install-etc:
        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}|" \
+       sed -e "/^Exec=/ 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"; \