summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-05 23:41:59 +0000
committerivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-05 23:41:59 +0000
commit86edf7b2972d4fe71e9d930e6dec235b1452a230 (patch)
tree3c6b8170b67693b5d6f1a478453e6f30f1232724 /TOOLS
parent64d1a0d366771c380c4f9b022c8b4702be8345b6 (diff)
downloadmpv-86edf7b2972d4fe71e9d930e6dec235b1452a230.tar.bz2
mpv-86edf7b2972d4fe71e9d930e6dec235b1452a230.tar.xz
only check source code for gnuisms
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25311 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/checktree.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/TOOLS/checktree.sh b/TOOLS/checktree.sh
index 0decd2da53..a7d26c67f1 100755
--- a/TOOLS/checktree.sh
+++ b/TOOLS/checktree.sh
@@ -179,7 +179,7 @@ fi
filelist=`all_filenames`
-case "$_stupid$_res$_depr" in
+case "$_stupid$_res$_depr$_gnu" in
*yes*)
# generate 'shortlist' to avoid false positives in xpm files, docs, etc,
# when one only needs to check .c and .h files
@@ -253,9 +253,9 @@ fi
# -----------------------------------------------------------------------------
-if [ "$_gnu" = "yes" ]; then
+if [ "$_gnu" = "yes" -a -n "$chfilelist" ]; then
printhead "checking for GNUisms ..."
- grep $_grepopts "case.*\.\.\..*:" $filelist
+ grep $_grepopts "case.*\.\.\..*:" $chfilelist
fi
# -----------------------------------------------------------------------------