Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp255329ybl; Fri, 16 Aug 2019 23:41:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX4NrL1KdbijTzn4Ha81d+vYyWhwtJK7koKUe0m9yHPsZsAoWnqgLxjiY9Rag/vU0iwXmO X-Received: by 2002:a65:6850:: with SMTP id q16mr11080458pgt.423.1566024089393; Fri, 16 Aug 2019 23:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566024089; cv=none; d=google.com; s=arc-20160816; b=KYFEsm2mb4qELUgc2Hmu1DWvK3WTzTtSU91OGcvlsX7oYTbhlMni8GoD9DzX0CG/rj gpOvh2XYsNKdvjFK5SZjFq1wNaaxgcluFg7ZHH6w5p4xjAz/0TKcaB6kbrghgrEDM9ef wbsygfRdkd/WERQDoMO8GFJBc0s1cpoialn4nhG8FLpiYntnzKTCRAMKP9zwTPnMWa0a X/E2lBG5dUeNu2IIqgll5v9W7SSHaDtjB+bhJ80jBoQ/f468yfVTHNgeKFoxqw5dIWqz udGKlzNa+CF/JAI6JxtPkZEwlmu6tWMrQHy5eexyzsFF2PovGkOM0aQH60KoIre6SzVX klXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pHC5nU+VgzmZ7VFos8+VtimEE2pPr/e7EvEmzHQIoLE=; b=db6cRDE9/c9Q/1OUfcXiIQA/yMkCLxj2s0D2XpzwLIeXg1/kylEOqYT25YejnOm2Zc NWQxOsljaSWwuc18mZAtVDhEolsByir4vR4JllzWVU/ZesIQoDmeD5REeG6rnIo/Z3Ve AUbgYOX116kh/TpYIyFHFPvmzumz8fO4ZMPO8GI1OeHkOJBmVvpE/Awz1mJrQlwaCWAY YAlHs2/W/hvTSXQvGsHye5nSVG6g8EbsUXB/H2Tap8HoCBz52uLI9d/xA1s5aHj1N00A SblxDeUSp4Da2FjW4hzozUdY9xWNoXBCsm9b2tIIYicK0wv8SX/JeWW8aoIU5ge1FXaB zTtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q5Xf39ux; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si2223674pjn.71.2019.08.16.23.41.15; Fri, 16 Aug 2019 23:41:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q5Xf39ux; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726207AbfHQGg3 (ORCPT + 99 others); Sat, 17 Aug 2019 02:36:29 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:36787 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbfHQGg2 (ORCPT ); Sat, 17 Aug 2019 02:36:28 -0400 Received: by mail-pg1-f196.google.com with SMTP id l21so4009749pgm.3 for ; Fri, 16 Aug 2019 23:36:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pHC5nU+VgzmZ7VFos8+VtimEE2pPr/e7EvEmzHQIoLE=; b=Q5Xf39uxxdnsc2XhqOmD1joxP4Cgu0OyQ7Eebl/Pxu4wB2RaEEJqbBEW/cMrDDfXoT 7VxLQi5jQrKZcF3H+0cuXV9Iod4myJ1wSs9vHTbD+5Bg8oMtkL+nF1ylxbwdo83Aw+j8 EfewUglH9GXd54Rmll/wHGhgQ5O1kVn07+jstzeUAfELvYUrX4ru+B41APsqk6/Ce5YN h3Ffyf5rtoMuHis2aKeJcoZrlX0B4941lyM0I/HWxVOUGWgnl3RxZ3WH3ksb9vURU9sT iEagXO3W8YzjPaP8FLN9SrTUPZaWHhpb+JitGbWwMB9sq++dO/aVxKYxb/y+kFdsDQVR f2Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pHC5nU+VgzmZ7VFos8+VtimEE2pPr/e7EvEmzHQIoLE=; b=Hdwz3dGJ4isw4frEeSQKfuiGyU2rdcJvliz4mIVeEJ433o5dKxQ+QlzBRNjMIOd8Yt jefZAODxCCquGbSl3sFPX362ntHuvEf5BkfdQr8+ECtk97KtddFIcajDZ2GWFOa3os6X XJfNN/OouGZQhxclqsq9+KOw4uSebIz7SptUinqoMuBrTW6rKLcSe3/Ifmr5IlGJNuJP 1if8WkaQatwU7cQI9xAcuh/slQoGfSkkuUVxx4NY6x9+9Xa8e0yt9guasW25l7Q7hTWP T2xrI9o/tYx34B2V53hhvUVRfr/P9KOgZIvzGPiLJLL9URjpAOmDArI3UAd0kzn0G/RO fYZA== X-Gm-Message-State: APjAAAUbk0oklre49agb38iFWdi2SfvikXgOvBDtld4MN7PoRgWbmZAw Agyt4Z44ZWgHKFQiRYSN/KuIQMg= X-Received: by 2002:a65:620a:: with SMTP id d10mr10664768pgv.8.1566023787820; Fri, 16 Aug 2019 23:36:27 -0700 (PDT) Received: from rxps.home ([2600:8800:1e00:242:3550:edee:2708:4ad0]) by smtp.gmail.com with ESMTPSA id y128sm6684095pgy.41.2019.08.16.23.36.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2019 23:36:27 -0700 (PDT) From: Ronan Pigott X-Google-Original-From: Ronan Pigott To: linux-bluetooth@vger.kernel.org Cc: Ronan Pigott Subject: [PATCH BlueZ v2 4/4] build: install zsh completions Date: Fri, 16 Aug 2019 23:34:52 -0700 Message-Id: <20190817063452.23273-5-rpigott@berkeley.edu> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190817063452.23273-1-rpigott@berkeley.edu> References: <20190817063452.23273-1-rpigott@berkeley.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Ronan Pigott --- Makefile.tools | 5 +++++ configure.ac | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/Makefile.tools b/Makefile.tools index b6b99d216..81ed2e30d 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -12,6 +12,11 @@ client_bluetoothctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \ $(GLIB_LIBS) $(DBUS_LIBS) -lreadline endif +if ZSH_COMPLETIONS +zshcompletiondir=$(ZSH_COMPLETIONDIR) +dist_zshcompletion_DATA = completion/zsh/_bluetoothctl +endif + if MONITOR bin_PROGRAMS += monitor/btmon diff --git a/configure.ac b/configure.ac index 0afe1e6db..76612ff07 100644 --- a/configure.ac +++ b/configure.ac @@ -119,6 +119,18 @@ if (test -z "${path_dbussessionbusdir}"); then fi AC_SUBST(DBUS_SESSIONBUSDIR, [${path_dbussessionbusdir}]) +AC_ARG_WITH([zsh-completion-dir], AC_HELP_STRING([--with-zsh-completion-dir=DIR], + [path to install zsh completions]), + [path_zshcompletiondir=${withval}], + [path_zshcompletiondir="yes"]) + +if (test "${path_zshcompletiondir}" = "yes"); then + path_zshcompletiondir="$datarootdir/zsh/site-functions" + AC_MSG_RESULT([${path_zshcompletiondir}]) +fi +AC_SUBST(ZSH_COMPLETIONDIR, [${path_zshcompletiondir}]) +AM_CONDITIONAL(ZSH_COMPLETIONS, test "${path_zshcompletiondir}" != "no") + AC_ARG_ENABLE(backtrace, AC_HELP_STRING([--enable-backtrace], [compile backtrace support]), [enable_backtrace=${enableval}]) -- 2.22.1