X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da44b91efc3cbe347690050d2ca5a582d3c7577c..658d98040dc6c7146c9c1ef651c7e5c0ebe83ec7:/distrib/scripts/is_text.sh diff --git a/distrib/scripts/is_text.sh b/distrib/scripts/is_text.sh index acde39fecd..0a35664f1e 100755 --- a/distrib/scripts/is_text.sh +++ b/distrib/scripts/is_text.sh @@ -14,16 +14,29 @@ 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 +if [ `basename $1` = "config.sub" ] ; then + exit 1 +fi +if [ `basename $1` = "config.guess" ] ; 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 +# ignore makefile.wat etc +if [ `basename $1` = "makefile.wat" ] ; then exit 1 fi +if [ `basename $1` = "config.wat" ] ; 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