]> git.saurik.com Git - wxWidgets.git/blobdiff - distrib/scripts/is_text.sh
moved wxOverlay into overlay.* files and out of dc.h/dcbase.cpp; implemented wxOverla...
[wxWidgets.git] / distrib / scripts / is_text.sh
index 60341c48a8be9e18095dc2b5459431c42e221c9c..acde39fecdc8d4eb11a97fb8cd92b00d22af6503 100755 (executable)
@@ -1,4 +1,14 @@
 #!/bin/sh
+
+###############################################################################
+# Name:      is_text.sh
+# Purpose:   returns 0 if the file in cvs tree is text, 1 if binary
+# Version:   $Id$
+# Author:    VZ
+# Created:   2006-07-19
+# Copyright: (c) Vadim Zeitlin 2006 <vadim@wxwindows.org>
+###############################################################################
+
 if [ $# != 1 ]; then
     echo "Usage: $0 <file>" >&2
     exit 2
@@ -10,7 +20,8 @@ if [ ! -f $entries ]; then
     exit 3
 fi
 
-re="^/`basename $1`/.*/-kb/"
+# we look for -kb in the last field, optionally followed by tag name
+re="^/`basename $1`/.*/-kb/\(T[^/]*\)\{0,1\}$"
 if grep -q "$re" $entries; then
     exit 1
 fi