Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp602374ybl; Fri, 16 Aug 2019 00:45:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRwNY082o8irS9VL/9VEGoE8qFYKCYsnceoEZ+myoZHLkMtWIuM1+rxESrJBnV/IfqnmMi X-Received: by 2002:a17:90a:3a8d:: with SMTP id b13mr5976174pjc.75.1565941513973; Fri, 16 Aug 2019 00:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565941513; cv=none; d=google.com; s=arc-20160816; b=J7iaDe8V5p1PE+6E07DswLkAQB5B0/eNjICTbuW+lowYtGUiqUMH8GFjFaocE1c7/G 4XkdxD8NLgqkBXroLcCbYw0qH16vHqmlVokB773KMza1il4QfZ2hJp8PZxam8aR8UCCR hSf6Jz4JHgVi6DGKxIQNvcA6E0yMRqVITt7aiOhI2O8lLU8wi+2hY5yFyKuVtR+pfUjW 90faGun2XQMe9IIhqDi97PvDt8lbfu1SkIhmB/KuVWRoNaBimzpxUTQMGqhRNHDaWgu4 xxbQf7LeMsQK6U5HX/fDf28bb0ExrTjl/t97B97X7ARBWx3FcykNwj6i1+cCk9Glf9zw Jf1Q== 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=vn+k0zB/gr1otSLsfIdRr3fLAI/97D3OBp6L3ZlmvU5WqONCKY+BzL2TrWZSEGUQ4Q 7mfC3/GJEYbh4i4OHncf+b6yG6rTJKGwJvIY1mKiglOVhVenPayXFht6CKKZeYSygwdJ 3wMgThNKKFOU04Xg71g/625c3MGzKBXeXMZYbXtC9m7pcjLb/K3pkBLjYsVvf21MVfyH j97veq4i/nHs5kuKUkRVDoerVu03rBRF6+fsBxsVFbRsvwySxELZuIbogE5ystOfzx6T ABr176IXVfceOEbGt6Zj/H0FZBt1bP7x2a744JGKjC0KYhtv0IUEPjYFmPuQGE72OYI0 ASCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fMZREsqx; 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 o127si3799213pfb.111.2019.08.16.00.44.52; Fri, 16 Aug 2019 00:45:13 -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=fMZREsqx; 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 S1725829AbfHPHot (ORCPT + 99 others); Fri, 16 Aug 2019 03:44:49 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:46940 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbfHPHos (ORCPT ); Fri, 16 Aug 2019 03:44:48 -0400 Received: by mail-pl1-f194.google.com with SMTP id c2so2112332plz.13 for ; Fri, 16 Aug 2019 00:44:48 -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=fMZREsqxA5cpGJnmnA1yYwn1SfCBwoKJ1bogeeLxoPxhaQ04cXowVTUZ9n3NpS8e4i Bt1CrnNRF77DNQ1TNRin0Jb9GVTfquhOTfqX0+sO40ea0eo9TXztcJqKrvUhdVWR88LI bUCnR0FRH1LGJNy808UpkdcTku/loAIhvEjymGPzOF/kLaGEe9J896ixmHfR4vO1Anr+ M55M8qX2r81wpCpFP+AmoQGM3Tah9ZHClQVWeYDdMW+2HRpdmSMv25SI9UdWmGmFusy9 PiQalxu4eCdFRnKJJUmScD1103zC7IgurkGLt1RqGHAbfqINm/9KKX/TIl4jzJ+KyrGI 2KDQ== 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=BvUM6ofAFOPWLb4JNrXW/qcXMphzNCvfV8WxOW9j6yY42N9oIw0qW6qGy9Y7FjHu39 c+kHqPSaZA6bCD9hC07i6o/lNwhi4Y4IYZywwTo+ss8P9S0nRznh4A3LwgTkArY/1J2v B+PYjMUWWX3PnL/BTDavBM/LlUUeeqKsu7XDoT6UphNKWRqgmGRhfZXShU9ONYUgX/9H wiMFgv8QIvWRBBQwO5Wb+vbx9Jy6croMxyQ+bpt/QK+NRzoI8MTDHp9pRsTZ0i5gjaCp faCoz4YQo3yNffG/Wr87YeISNq8U7FJsMRqXh3FNSF/MbI/AvCrmvB4kV/omSyH2MKpX vMUQ== X-Gm-Message-State: APjAAAUEV/3aI/Hk/gPGEx/m9ACtYNtjtWCmTd42fWwq6hI6fgYh5wwF j1wlKjO3aDIBSh0Yce7K6p2Tb2w= X-Received: by 2002:a17:902:8696:: with SMTP id g22mr8036879plo.122.1565941487811; Fri, 16 Aug 2019 00:44:47 -0700 (PDT) Received: from rxps.home ([2600:8800:1e00:242:71a0:9ddd:9d48:afb]) by smtp.gmail.com with ESMTPSA id v184sm4186679pgd.34.2019.08.16.00.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2019 00:44:47 -0700 (PDT) From: Ronan Pigott X-Google-Original-From: Ronan Pigott To: linux-bluetooth@vger.kernel.org Cc: Ronan Pigott Subject: [PATCH BlueZ 3/3] build: install zsh completions Date: Fri, 16 Aug 2019 00:43:33 -0700 Message-Id: <20190816074333.24673-4-rpigott@berkeley.edu> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190816074333.24673-1-rpigott@berkeley.edu> References: <20190816074333.24673-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