diff options
| author | David Bremner <david@tethera.net> | 2018-09-16 14:08:05 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2018-09-18 07:34:33 -0300 |
| commit | ef07e3f3bdd01a7266e0268227cd9b78f3c47c68 (patch) | |
| tree | 1063a66021839741c7c21b1d46878a3c9e992f4e | |
| parent | aab395b2d4edb41d0670c3c838c309df30d95d63 (diff) | |
build: install notmuch-emacs-mua with absolute shebang
Follow distro-centric rules to reduce the chance of surprising
behaviour due to PATH changes
| -rw-r--r-- | emacs/Makefile.local | 5 |
1 files changed, 4 insertions, 1 deletions
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) |
