]> git.saurik.com Git - wxWidgets.git/blobdiff - distrib/scripts/is_text.sh
Cache user and group name as these can be expensive to get on some systems.
[wxWidgets.git] / distrib / scripts / is_text.sh
index acde39fecdc8d4eb11a97fb8cd92b00d22af6503..9e95109aecaeb26787042f25ac3f49919e6aa962 100755 (executable)
@@ -14,16 +14,20 @@ if [ $# != 1 ]; then
     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
-
-# 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
+if [ `basename $1` = "config.sub" ] ; then
     exit 1
 fi
+if [ `basename $1` = "config.guess" ] ; then
+    exit 1
+fi
+
+if  svn proplist $1 | grep -q "eol-style"  ; then
+    exit 0
+fi    
 
-exit 0
+#either not a svn file or not one with eol-style
+exit 3