mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
build: install notmuch-emacs-mua with absolute shebang
Follow distro-centric rules to reduce the chance of surprising behaviour due to PATH changes
This commit is contained in:
parent
aab395b2d4
commit
ef07e3f3bd
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue