[Lemon-commits] Peter Kovacs: Bug fix in unify-sources.sh (#245)
Lemon HG
hg at lemon.cs.elte.hu
Fri Mar 27 11:37:31 CET 2009
details: http://lemon.cs.elte.hu/hg/lemon/rev/6b9c1f6eb1e5
changeset: 582:6b9c1f6eb1e5
user: Peter Kovacs <kpeter [at] inf.elte.hu>
date: Fri Mar 27 07:24:18 2009 +0100
description:
Bug fix in unify-sources.sh (#245)
diffstat:
scripts/unify-sources.sh | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (17 lines):
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='\ +$'
More information about the Lemon-commits
mailing list