From a8b114031e89094aadc4d3c90a66f2ea9681501f Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 14 Jul 2008 22:38:59 +0200 Subject: [PATCH] By default, install eweouz-dump-addressbook to pkglibdir and look for it in common prefixes --- lisp/eweouz.el | 7 ++++++- src/Makefile.am | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/eweouz.el b/lisp/eweouz.el index 4d7fbf8..d387e44 100644 --- a/lisp/eweouz.el +++ b/lisp/eweouz.el @@ -23,7 +23,12 @@ (defconst eweouz-version "0.1") (defconst eweouz-buffer-name "*EWEOUZ*") -(defvar eweouz-path "eweouz-dump-addressbook") +(setq eweouz-helper-dirs '("/usr/lib/eweouz" "/usr/local/lib/eweouz")) + +(defvar eweouz-path (locate-file "eweouz-dump-addressbook" + eweouz-helper-dirs + nil + 'executable)) (defvar eweouz-buffer nil) (defvar eweouz-pop-up-target-lines 5) diff --git a/src/Makefile.am b/src/Makefile.am index ab0042a..52105d7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,5 @@ -bin_PROGRAMS = eweouz-dump-addressbook +pkglib_PROGRAMS = eweouz-dump-addressbook noinst_PROGRAMS = write-addressbook -- 2.39.5