diff options
author | ddomingo <ddomingo@redhat.com> | 2009-03-17 14:43:19 +1000 |
---|---|---|
committer | ddomingo <ddomingo@redhat.com> | 2009-03-17 14:43:19 +1000 |
commit | 11f44635b6964dd7a7753da6722fa4750573d0ca (patch) | |
tree | 803cfcd6816d1f28791f7a1617a1ccf70ce873f5 /doc/Tapset_Reference_Guide | |
parent | 929a278ec01bc14630d247788352a2aaab372ddd (diff) | |
download | systemtap-steved-11f44635b6964dd7a7753da6722fa4750573d0ca.tar.gz systemtap-steved-11f44635b6964dd7a7753da6722fa4750573d0ca.tar.xz systemtap-steved-11f44635b6964dd7a7753da6722fa4750573d0ca.zip |
working copy
Diffstat (limited to 'doc/Tapset_Reference_Guide')
-rw-r--r-- | doc/Tapset_Reference_Guide/manpager.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/Tapset_Reference_Guide/manpager.sh b/doc/Tapset_Reference_Guide/manpager.sh index 16ee441f..0876121a 100644 --- a/doc/Tapset_Reference_Guide/manpager.sh +++ b/doc/Tapset_Reference_Guide/manpager.sh @@ -99,11 +99,19 @@ for i in `cat manpageus`; do perl -p -i -e 's|.B Description:/|\n.P\n.TP|g' $i.5 ; perl -p -i -e 's|.B Description:|.B Description:\n\n |g' $i.5 ; cat $i.5 | perl -p -e 'undef $/;s|\.B Arguments:\n\n\.B |.B|msg' | -perl -p -e 'undef $/;s|\n \* ||msg' > stapprobes.$i.5.in ; +perl -p -e 'undef $/;s|\n \* | |msg' > stapprobes.$i.5.in ; # cleanup all remaining stars, excess initial whitespace, and trailing "/" per line perl -p -i -e 's|^ \*||g' stapprobes.$i.5.in; perl -p -i -e 's|^ ||g' stapprobes.$i.5.in; perl -p -i -e 's|^/||g' stapprobes.$i.5.in; +# convert tags +perl -p -i -e 's|</[^>]*>|\n|g' stapprobes.$i.5.in ; +perl -p -i -e 's|<[^>]*>|\n.B |g' stapprobes.$i.5.in ; +# cleanup remaining excess whitespace +perl -p -i -e 's|\t\t| |g' stapprobes.$i.5.in; +perl -p -i -e 's|^ ||g' stapprobes.$i.5.in; +#sed -i -e 's/$/ /g' stapprobes.$i.5.in; +#sed -i -e 's|$ | |g' stapprobes.$i.5.in; done # file cleanup |