From 64d1a0d366771c380c4f9b022c8b4702be8345b6 Mon Sep 17 00:00:00 2001 From: ivo Date: Wed, 5 Dec 2007 23:39:01 +0000 Subject: 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 --- TOOLS/checktree.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'TOOLS') 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" -- cgit v1.2.3