From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754885AbcFPWby (ORCPT ); Thu, 16 Jun 2016 18:31:54 -0400 Received: from mail.kernel.org ([198.145.29.136]:36334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754636AbcFPWbt (ORCPT ); Thu, 16 Jun 2016 18:31:49 -0400 From: "Luis R. Rodriguez" To: Julia.Lawall@lip6.fr, Gilles.Muller@lip6.fr, nicolas.palix@imag.fr, mmarek@suse.com Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, gregkh@linuxfoundation.org, markivx@codeaurora.org, stephen.boyd@linaro.org, zohar@linux.vnet.ibm.com, broonie@kernel.org, ming.lei@canonical.com, tiwai@suse.de, johannes@sipsolutions.net, chunkeey@googlemail.com, hauke@hauke-m.de, jwboyer@fedoraproject.org, dmitry.torokhov@gmail.com, dwmw2@infradead.org, jslaby@suse.com, torvalds@linux-foundation.org, cocci@systeme.lip6.fr, "Luis R. Rodriguez" Subject: [PATCH v2 4/8] scripts: add glimpse.sh for indexing the kernel Date: Thu, 16 Jun 2016 15:31:28 -0700 Message-Id: <1466116292-21843-5-git-send-email-mcgrof@kernel.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1466116292-21843-1-git-send-email-mcgrof@kernel.org> References: <1466116292-21843-1-git-send-email-mcgrof@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Glimpse is a tool you can use to index the kernel. The tool was open sourced on 2014-09-26 [0] under the ISC license however the original release still [1] does not compile. A fix for this and a release that does compile is provided in a temporary tree [2]. v2 changesl: o simplify DIR in one line and add verbose release information to commit log about the open sourcing of glimpse and its current status. o add index files to .gitignore [0] http://webglimpse.net/ [1] https://github.com/gvelez17/glimpse/ [2] https://github.com/mcgrof/glimpse.git Signed-off-by: Luis R. Rodriguez --- .gitignore | 3 +++ scripts/glimpse.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100755 scripts/glimpse.sh diff --git a/.gitignore b/.gitignore index 2be25f771bd8..e6b40a6f3a7a 100644 --- a/.gitignore +++ b/.gitignore @@ -113,3 +113,6 @@ all.config # Kdevelop4 *.kdev4 + +# Glimpse +.glimpse_* diff --git a/scripts/glimpse.sh b/scripts/glimpse.sh new file mode 100755 index 000000000000..2e866228a88f --- /dev/null +++ b/scripts/glimpse.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +DIR="$(dirname $(readlink -f $0))/.." + +GLIMPSEINDEX="`which ${GLIMPSEINDEX:=glimpseindex}`" +if [ ! -x "$GLIMPSEINDEX" ]; then + echo 'glimpseindex can be obtained at https://github.com/mcgrof/glimpse.git' + exit 1 +fi + +find $DIR/* -name "*.[ch]" | $GLIMPSEINDEX -o -H . -F -- 2.8.2