scripts: add script to convert multiline comments into 4-line format
commit6afeb39713010742b4c45e2693ee7b3bf098fba8
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Dec 2018 09:33:22 +0000 (14 10:33 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jan 2019 14:46:55 +0000 (11 15:46 +0100)
tree73a2aa36ef7027185beb5f9e97d468f2fd4f67ca
parent7d2fcebbdc853d722852849ea61dc23662114487
scripts: add script to convert multiline comments into 4-line format

Since we're adding checkpatch rules to enforce 4-line multiline comment
format, i.e. with lone /* and */, this script can be run on existing
code so that the comment style does not become inconsistent within a
file.

The alternative to awk-in-a-shell-script could be Perl, which also
supports -i directly, but a2p seems to have bitrotten and I didn't quite
feel like writing this twice...

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/fix-multiline-comments.sh [new file with mode: 0755]