# HG changeset patch
# User Peter Kovacs <kpeter@inf.elte.hu>
# Date 1238135058 -3600
# Node ID 6b9c1f6eb1e59df76872f7ea0cca2793553acf64
# Parent  56a86a363c12173a5163e28960887eb8a0f3e04c
Bug fix in unify-sources.sh (#245)

diff -r 56a86a363c12 -r 6b9c1f6eb1e5 scripts/unify-sources.sh
--- a/scripts/unify-sources.sh	Thu Mar 19 15:41:29 2009 +0000
+++ b/scripts/unify-sources.sh	Fri Mar 27 07:24:18 2009 +0100
@@ -88,7 +88,12 @@
 function check_action() {
     if [ "$3" == 'tabs' ]
     then
-        PATTERN=$(echo -e '\t')
+        if echo $2 | grep -q -v -E 'Makefile\.am$'
+        then
+            PATTERN=$(echo -e '\t')
+        else
+            PATTERN='        '
+        fi
     elif [ "$3" == 'trailing spaces' ]
     then
         PATTERN='\ +$'