xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/contrib/ari/gdb_find.sh (revision d90047b5d07facf36e6c01dcc0bded8997ce9cc2)
1#!/bin/sh
2
3# GDB script to create list of files to check using gdb_ari.sh.
4#
5# Copyright (C) 2003-2017 Free Software Foundation, Inc.
6#
7# This file is part of GDB.
8#
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation; either version 3 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
22# Make certain that the script is not running in an internationalized
23# environment.
24
25LANG=C ; export LANG
26LC_ALL=C ; export LC_ALL
27
28
29# A find that prunes files that GDB users shouldn't be interested in.
30# Use sort to order files alphabetically.
31
32find "$@" \
33    -name testsuite -prune -o \
34    -name gdbserver -prune -o \
35    -name gdbtk -prune -o \
36    -name gnulib -prune -o \
37    -name '*-stub.c' -prune -o \
38    -name '*-exp.c' -prune -o \
39    -name ada-lex.c -prune -o \
40    -name cp-name-parser.c -prune -o \
41    -type f -name '*.[lyhc]' -print | sort
42