From: Tollef Fog Heen Date: Mon, 14 Jul 2008 20:38:59 +0000 (+0200) Subject: By default, install eweouz-dump-addressbook to pkglibdir and look for it in common... X-Git-Tag: 0.1~15 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8b114031e89094aadc4d3c90a66f2ea9681501f;p=eweouz By default, install eweouz-dump-addressbook to pkglibdir and look for it in common prefixes --- 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