summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-05 23:39:01 +0000
committerivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-05 23:39:01 +0000
commit64d1a0d366771c380c4f9b022c8b4702be8345b6 (patch)
treee248f1c450ded518875b2ff6d7727b57dae7df17 /TOOLS
parent9495e9701b018ffa7da45c65d8eac5d94e90771a (diff)
downloadmpv-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')
-rwxr-xr-xTOOLS/checktree.sh6
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"