Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 3B4CA431FBC for ; Fri, 20 Nov 2009 08:16:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QVs+wf+mm8Kb for ; Fri, 20 Nov 2009 08:16:07 -0800 (PST) Received: from mail-fx0-f217.google.com (mail-fx0-f217.google.com [209.85.220.217]) by olra.theworths.org (Postfix) with ESMTP id DC2A4431FAE for ; Fri, 20 Nov 2009 08:16:06 -0800 (PST) Received: by fxm9 with SMTP id 9so3846299fxm.30 for ; Fri, 20 Nov 2009 08:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:in-reply-to :references:from:to:date:subject; bh=AQAoa6sOjo7oXf3vIka0K2rQTC8grtV/uIYjJL/zJHU=; b=Brp/bdnzkZ9SdQKenbE1MCvxGFDQ0OU+HK+pgCYWnqYhcd3/K2iNaNGGWPyGUIzfoA bxhgzUJbFVFYpdhxkzPG2/uAVIHZ1a6SB5fhiPYMFYuBmb6jcXp3Xg4h5Tj7txUrbsiV 8G8iXfwBIgSVegBJtq7iUZuQz7Oy+KfNjMAKg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:in-reply-to:references:from:to:date:subject; b=xRkTN4zq68xr6RUmjZ7XYyy3NopKzVQjulnoiJaxjahhykx4C3mEapjHNYLESaLF2P 4ZH4YPdCik1v6IZVv3CUPAP8OabmEjWdW60CoyfPoFePuMVwu1rhve1omDeKRrxsN+hX rghjeMOtdWQlCIJRn8LadWEiKVT/gZz7uM858= Received: by 10.216.87.144 with SMTP id y16mr488904wee.95.1258733765788; Fri, 20 Nov 2009 08:16:05 -0800 (PST) Received: from localhost (92.40.162.43.sub.mbb.three.co.uk [92.40.162.43]) by mx.google.com with ESMTPS id g9sm3083282gvc.25.2009.11.20.08.16.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 20 Nov 2009 08:16:04 -0800 (PST) Message-ID: <4b06c0c4.096c100a.2608.ffffe685@mx.google.com> In-Reply-To: <87d43dkwj1.fsf@gmail.com> References: <87d43dkwj1.fsf@gmail.com> From: James Rowe To: notmuch@notmuchmail.org Date: Fri, 20 Nov 2009 15:28:26 +0000 Subject: [notmuch] [PATCH] Make bash completion directory configurable. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 16:16:07 -0000 Some systems install completion scripts in /usr/share/bash-completion, make the location configurable from Makefile.config. --- Makefile.config | 1 + Makefile.local | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.config b/Makefile.config index 63c90a8..d72a39e 100644 --- a/Makefile.config +++ b/Makefile.config @@ -1 +1,2 @@ prefix = /usr/local +bash_completion_dir = /etc/bash_completion.d diff --git a/Makefile.local b/Makefile.local index ecd4ceb..1017a8c 100644 --- a/Makefile.local +++ b/Makefile.local @@ -27,14 +27,14 @@ notmuch.1.gz: notmuch.1 install: all notmuch.1.gz for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \ - $(DESTDIR)/etc/bash_completion.d/ ; \ + $(DESTDIR)$(bash_completion_dir) ; \ do \ install -d $$d ; \ done ; install notmuch $(DESTDIR)$(prefix)/bin/ install -m0644 notmuch.1.gz $(DESTDIR)$(prefix)/share/man/man1/ install notmuch-completion.bash \ - $(DESTDIR)/etc/bash_completion.d/notmuch + $(DESTDIR)$(bash_completion_dir)/notmuch install-emacs: install emacs for d in $(DESTDIR)/$(emacs_lispdir) ; \ -- 1.6.4.4