# HG changeset patch # User Peter Kovacs # Date 2009-03-27 07:24:18 # Node ID 6b9c1f6eb1e59df76872f7ea0cca2793553acf64 # Parent 56a86a363c12173a5163e28960887eb8a0f3e04c Bug fix in unify-sources.sh (#245) diff --git a/scripts/unify-sources.sh b/scripts/unify-sources.sh --- a/scripts/unify-sources.sh +++ b/scripts/unify-sources.sh @@ -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='\ +$'