Bug fix in unify-sources.sh (#245)
authorPeter Kovacs <kpeter@inf.elte.hu>
Fri, 27 Mar 2009 07:24:18 +0100
changeset 6016b9c1f6eb1e5
parent 599 56a86a363c12
child 602 b779c4dc7496
Bug fix in unify-sources.sh (#245)
scripts/unify-sources.sh
     1.1 --- a/scripts/unify-sources.sh	Thu Mar 19 15:41:29 2009 +0000
     1.2 +++ b/scripts/unify-sources.sh	Fri Mar 27 07:24:18 2009 +0100
     1.3 @@ -88,7 +88,12 @@
     1.4  function check_action() {
     1.5      if [ "$3" == 'tabs' ]
     1.6      then
     1.7 -        PATTERN=$(echo -e '\t')
     1.8 +        if echo $2 | grep -q -v -E 'Makefile\.am$'
     1.9 +        then
    1.10 +            PATTERN=$(echo -e '\t')
    1.11 +        else
    1.12 +            PATTERN='        '
    1.13 +        fi
    1.14      elif [ "$3" == 'trailing spaces' ]
    1.15      then
    1.16          PATTERN='\ +$'