From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932463AbcFNUXy (ORCPT ); Tue, 14 Jun 2016 16:23:54 -0400 Received: from mail.kernel.org ([198.145.29.136]:56492 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932401AbcFNUXv (ORCPT ); Tue, 14 Jun 2016 16:23:51 -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, cocci@systeme.lip6.fr, "Luis R. Rodriguez" Subject: [PATCH v3 3/6] scripts: add glimpse.sh for indexing the kernel Date: Tue, 14 Jun 2016 13:23:37 -0700 Message-Id: <1465935820-14010-4-git-send-email-mcgrof@kernel.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1465935820-14010-1-git-send-email-mcgrof@kernel.org> References: <20160614201923.GC11948@wotan.suse.de> <1465935820-14010-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 recently open sourced under the ISC license and can be obtained at: https://github.com/mcgrof/glimpse.git Signed-off-by: Luis R. Rodriguez --- scripts/glimpse.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/glimpse.sh diff --git a/scripts/glimpse.sh b/scripts/glimpse.sh new file mode 100755 index 000000000000..5fd24e49f31b --- /dev/null +++ b/scripts/glimpse.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +DIR=$(dirname $(readlink -f $0)) +DIR="${DIR}/../" + +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