]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
tabify CHANGES. spell checker, cut-and-paste, etc. can leave CHANGES without
authorMark Andrews <marka@isc.org>
Sun, 7 Mar 2004 22:40:59 +0000 (22:40 +0000)
committerMark Andrews <marka@isc.org>
Sun, 7 Mar 2004 22:40:59 +0000 (22:40 +0000)
the correct tabs.

util/tabify-changes [new file with mode: 0644]

diff --git a/util/tabify-changes b/util/tabify-changes
new file mode 100644 (file)
index 0000000..418398f
--- /dev/null
@@ -0,0 +1,22 @@
+expand ${1} |
+sed \
+-e 's/^\([1-9][0-9][0-9][0-9][0-9][0-9]\.\) */\1       /' \
+-e 's/^\([1-9][0-9][0-9][0-9][0-9]\.\) */\1    /' \
+-e 's/^\([1-9][0-9][0-9][0-9]\.\) */\1 /' \
+-e 's/^\( [1-9][0-9][0-9]\.\) */\1     /' \
+-e 's/^\(  [1-9][0-9]\.\) */\1 /' \
+-e 's/^\(   [1-9]\.\) */\1     /' \
+-e 's/\(       \[.\]\) */\1            /' \
+-e 's/\(       \[..\]\) */\1           /' \
+-e 's/\(       \[...\]\) */\1          /' \
+-e 's/\(       \[....\]\) */\1         /' \
+-e 's/\(       \[.....\]\) */\1                /' \
+-e 's/\(       \[......\]\) */\1       /' \
+-e 's/\(       \[.......\]\) */\1      /' \
+-e 's/\(       \[........\]\) */\1     /' \
+-e 's/\(       \[.........\]\) */\1    /' \
+-e 's/\(       \[..........\]\) */\1   /' \
+-e 's/\(       \[...........\]\) */\1  /' \
+-e 's/\(       \[............\]\) */\1 /' \
+-e 's/[        ]*$//' |
+unexpand