]> git.saurik.com Git - wxWidgets.git/blobdiff - distrib/scripts/is_text.sh
Make wxCheckListBox call event.SetString() on all platforms, not just wxMSW. Mention...
[wxWidgets.git] / distrib / scripts / is_text.sh
index 60341c48a8be9e18095dc2b5459431c42e221c9c..0a35664f1e6a23d1add3a329cd9ace965494cbc1 100755 (executable)
@@ -1,18 +1,42 @@
 #!/bin/sh
 #!/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
 fi
 
 if [ $# != 1 ]; then
     echo "Usage: $0 <file>" >&2
     exit 2
 fi
 
-entries=`dirname $1`/CVS/Entries
-if [ ! -f $entries ]; then
-    echo "CVS entries file \"$entries\" not found." >&2
-    exit 3
+# don't do configure; config.sub; config.guess
+if [ `basename $1` = "configure" ] ; then
+    exit 1
+fi
+if [ `basename $1` = "config.sub" ] ; then
+    exit 1
+fi
+if [ `basename $1` = "config.guess" ] ; then
+    exit 1
 fi
 
 fi
 
-re="^/`basename $1`/.*/-kb/"
-if grep -q "$re" $entries; then
+# ignore makefile.wat etc
+if [ `basename $1` = "makefile.wat" ] ; then
+    exit 1
+fi
+if [ `basename $1` = "config.wat" ] ; then
     exit 1
 fi
 
     exit 1
 fi
 
-exit 0
+
+if  svn proplist $1 | grep -q "eol-style"  ; then
+    exit 0
+fi    
+
+#either not a svn file or not one with eol-style
+exit 3