scripts/unify-sources.sh
changeset 551 49a39bae067c
parent 396 c5f010a5647a
child 623 586b65073025
     1.1 --- a/scripts/unify-sources.sh	Sun Mar 29 23:08:20 2009 +0200
     1.2 +++ b/scripts/unify-sources.sh	Sun Mar 29 22:19:14 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='\ +$'