From eb9c81dd36c4848367335fed6461811366e919fa Mon Sep 17 00:00:00 2001 From: Romain Goffe Date: Sun, 24 Apr 2011 22:46:03 +0200 Subject: [PATCH] Utils: add default script value --- utils/typo.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/utils/typo.sh b/utils/typo.sh index 9f2452f7..dd841e52 100755 --- a/utils/typo.sh +++ b/utils/typo.sh @@ -4,15 +4,21 @@ #Date: 27/10/2010 #Description: fix typographic mistakes, some depending on language +FILES=songs/*/*.sg + +if [ $# -gt 0 ] ; then + FILES=$@ +fi + # remove trailing space and double space sed -i \ -e 's/\s*$//g' \ -e 's/[,\.]$//g' \ -e '/\s*%/! s/\([^ ]\)\s\+/\1 /g' \ - $@ + $FILES # formating rules depending on language -for song in $@; +for song in $FILES; do if grep -q "selectlanguage{english}" $song then