diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-08 18:39:24 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-08 19:29:42 +0200 |
commit | 699bcc4bd8166abb6ee26a37d9e1189817741277 (patch) | |
tree | b57f4c9bc3bf24c6b565f78966dc20ff98a4c36a /tests/fedora | |
parent | e4f69c178ee9e68ecdbd743de669ec8c1388e40f (diff) | |
download | grep-699bcc4bd8166abb6ee26a37d9e1189817741277.tar.gz |
convert all TABs to equivalent spaces in indentation
Using this file,
cat > leading-blank.exempt <<\EOF
(?:^|\/)ChangeLog[^/]*$
(?:^|\/)(?:GNU)?[Mm]akefile[^/]*$
\.(?:am|mk)$
EOF
run this command to convert all non-conforming leading white
space to be all spaces:
git ls-files \
| pcregrep -vf leading-blank.exempt \
| xargs pcregrep -l '^ *\t' \
| xargs perl -MText::Tabs -ni -le \
'$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
Diffstat (limited to 'tests/fedora')
-rw-r--r-- | tests/fedora | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/fedora b/tests/fedora index 336d913c..a029999e 100644 --- a/tests/fedora +++ b/tests/fedora @@ -9,10 +9,10 @@ if [ -t 1 ] then - # Colored output on terimal - G='\033[32m' - R='\033[31m' - D='\033[0m' + # Colored output on terimal + G='\033[32m' + R='\033[31m' + D='\033[0m' fi ok () { printf "${G}OK${D}"; } |