]>
git.saurik.com Git - wxWidgets.git/blob - distrib/scripts/is_text.sh
3 ###############################################################################
5 # Purpose: returns 0 if the file in cvs tree is text, 1 if binary
9 # Copyright: (c) Vadim Zeitlin 2006 <vadim@wxwindows.org>
10 ###############################################################################
13 echo "Usage: $0 <file>" >&2
17 entries
=`dirname $1`/CVS
/Entries
18 if [ ! -f $entries ]; then
19 echo "CVS entries file \"$entries\" not found." >&2
23 # we look for -kb in the last field, optionally followed by tag name
24 re
="^/`basename $1`/.*/-kb/\(T[^/]*\)\{0,1\}$"
25 if grep -q "$re" $entries; then