X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=emacs%2FMakefile.local;fp=emacs%2FMakefile.local;h=5e4ae1bda257f61cac0f296ee5a9ff2bec80f4f9;hb=c201ee2193f4868fca082d3fe094a8ad04ad58cc;hp=1b3ef5847a4060a0bb4503356d90caf1a11a9d18;hpb=0ff3786ac03684245488f09d59be98325877656b;p=notmuch diff --git a/emacs/Makefile.local b/emacs/Makefile.local index 1b3ef584..5e4ae1bd 100644 --- a/emacs/Makefile.local +++ b/emacs/Makefile.local @@ -110,7 +110,10 @@ endif mkdir -p "$(DESTDIR)$(emacsetcdir)" install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)" mkdir -p "$(DESTDIR)$(prefix)/bin/" - install $(emacs_mua) "$(DESTDIR)$(prefix)/bin" +ifeq ($(HAVE_BASH),1) + sed "1s|^#!.*|#! $(BASH_ABSOLUTE)|" < $(emacs_mua) > $(DESTDIR)$(prefix)/bin/notmuch-emacs-mua + chmod 755 $(DESTDIR)$(prefix)/bin/notmuch-emacs-mua +endif ifeq ($(WITH_DESKTOP),1) mkdir -p "$(DESTDIR)$(desktop_dir)" desktop-file-install --mode 0644 --dir "$(DESTDIR)$(desktop_dir)" $(emacs_mua_desktop)