diff options
author | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-05 23:39:01 +0000 |
---|---|---|
committer | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-12-05 23:39:01 +0000 |
commit | 64d1a0d366771c380c4f9b022c8b4702be8345b6 (patch) | |
tree | e248f1c450ded518875b2ff6d7727b57dae7df17 /TOOLS/checktree.sh | |
parent | 9495e9701b018ffa7da45c65d8eac5d94e90771a (diff) | |
download | mpv-64d1a0d366771c380c4f9b022c8b4702be8345b6.tar.bz2 mpv-64d1a0d366771c380c4f9b022c8b4702be8345b6.tar.xz |
simpler and more easily expandable test whether we need a shortlist that
only contains .[ch] files
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25310 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS/checktree.sh')
-rwxr-xr-x | TOOLS/checktree.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/TOOLS/checktree.sh b/TOOLS/checktree.sh index 0ab29ccd3b..0decd2da53 100755 --- a/TOOLS/checktree.sh +++ b/TOOLS/checktree.sh @@ -179,11 +179,13 @@ fi filelist=`all_filenames` -if [ "$_stupid" = "yes" -o "$_res" = "yes" -o "$_depr" = "yes" ] ; then +case "$_stupid$_res$_depr" in + *yes*) # generate 'shortlist' to avoid false positives in xpm files, docs, etc, # when one only needs to check .c and .h files chfilelist=`echo $filelist | tr ' ' '\n' | grep "[\.][ch]$"` -fi + ;; +esac if [ "$_showcont" = "yes" ]; then _diffopts="-u" |