scripts/unify-sources.sh
changeset 556 07ed3735ce1b
parent 396 c5f010a5647a
child 628 586b65073025
     1.1 --- a/scripts/unify-sources.sh	Fri Mar 27 09:30:22 2009 +0000
     1.2 +++ b/scripts/unify-sources.sh	Fri Mar 27 10:34:43 2009 +0000
     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='\ +$'