diff options
author | Jim Meyering <meyering@fb.com> | 2019-01-05 22:04:57 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2019-01-05 22:47:23 -0800 |
commit | badccffea49ddc26b72208366f00429cc7ffb9e1 (patch) | |
tree | 67540e209f66e920565f43c84cff6f3f7fed978a /cfg.mk | |
parent | 601eceb57cfb87ded594701acc401277c53ff837 (diff) | |
download | diffutils-badccffea49ddc26b72208366f00429cc7ffb9e1.tar.gz |
maint: convert all TABs to equivalent spaces in indentation
Using this file,
cat > leading-blank.exempt <<\EOF
(\.gitmodules|help2man|pre-commit)$
(?:^|\/)ChangeLog[^/]*$
(?:^|\/)(?:GNU)?[Mm]akefile[^/]*$
\.(?:am|mk)$
EOF
run the following 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 : $_'
Since that changed old NEWS, I also ran "make update-NEWS-hash"
to update the old_NEWS_hash value in cfg.mk.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -35,7 +35,7 @@ announcement_Cc_ = $(translation_project_), $(PACKAGE)-devel@gnu.org # Now that we have better tests, make this the default. export VERBOSE = yes -old_NEWS_hash = d8faba8d05054af539f24d3649992207 +old_NEWS_hash = 883954bcb25c48755004736540de39e7 # Tell maint.mk's syntax-check rules that diff gets config.h directly or # via diff.h or system.h. |