]> git.saurik.com Git - wxWidgets.git/blame_incremental - distrib/scripts/is_text.sh
add Scintilla.iface to the distribution
[wxWidgets.git] / distrib / scripts / is_text.sh
... / ...
CommitLineData
1#!/bin/sh
2
3###############################################################################
4# Name: is_text.sh
5# Purpose: returns 0 if the file in cvs tree is text, 1 if binary
6# Version: $Id$
7# Author: VZ
8# Created: 2006-07-19
9# Copyright: (c) Vadim Zeitlin 2006 <vadim@wxwindows.org>
10###############################################################################
11
12if [ $# != 1 ]; then
13 echo "Usage: $0 <file>" >&2
14 exit 2
15fi
16
17# don't do configure; config.sub; config.guess
18if [ `basename $1` = "configure" ] ; then
19 exit 1
20fi
21if [ `basename $1` = "config.sub" ] ; then
22 exit 1
23fi
24if [ `basename $1` = "config.guess" ] ; then
25 exit 1
26fi
27
28# ignore makefile.wat etc
29if [ `basename $1` = "makefile.wat" ] ; then
30 exit 1
31fi
32if [ `basename $1` = "config.wat" ] ; then
33 exit 1
34fi
35
36
37if svn proplist $1 | grep -q "eol-style" ; then
38 exit 0
39fi
40
41#either not a svn file or not one with eol-style
42exit 3