Files
impala/bin/gen-cscope.sh
Dan Hecht 7d504b847f Add thrift, jflex, yacc files to cscope file list.
I find it useful to have these indexed by cscope.  Also, gitignore
files generated with cscope -q (inverted index).

Change-Id: I8d5bcd34706c40357b94337db4b72dccecdecbd9
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3910
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: Daniel Hecht <dhecht@cloudera.com>
(cherry picked from commit 66ecea5c0c9212377d314c5312fec07446960325)
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3937
Reviewed-by: Daniel Hecht <dhecht@cloudera.com>
2014-08-19 18:00:55 -07:00

25 lines
800 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright 2012 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
bin=`dirname "$0"`
bin=`cd "$bin"; pwd`
. "$bin"/impala-config.sh
# Generate list of files for Cscope to index
cd $IMPALA_HOME
find . -regex '.*\.\(cc\|c\|hh\|h\|java\|thrift\|flex\|y\)$' > cscope.files