Fix tmp/format-headers.sh, format headers
The script had "s surrounding the git ls-files command which turned it to a single file which of course is wrong. Ran script again fixing many README.md files that had incorrect number of blank lines for critical headers. This will have to be done a final but a good number of files have been corrected.
This commit is contained in:
1 parent
1a32748f4d
commit
ba764a1833
117 files changed
+56
-128
No files matched your search
@@ -9,7 +9,7 @@
|
||||
# the [0-9]{4} directories.
|
||||
#
|
||||
|
||||
for i in "$(git ls-files '[0-9][0-9][0-9][0-9]/*README.md')"; do
|
||||
for i in $(git ls-files '[0-9][0-9][0-9][0-9]/*README.md'); do
|
||||
perl -0777 -p -i -e 's/([^\n]\n)\n*##*[[:space:]]*(To build):?\n\n*([^\n])?/$1\n\n## $2:\n\n$3/' "$i"
|
||||
perl -0777 -p -i -e 's/([^\n]\n)\n*##*[[:space:]]*(Bugs and \(Mis\)features):?\n\n*([^\n])?/$1\n\n### $2:\n\n$3/' "$i"
|
||||
perl -0777 -p -i -e 's/([^\n]\n)\n*##*[[:space:]]*(To use):?\n\n*([^\n])?/$1\n\n## $2:\n\n$3/' "$i"
|
||||
|
||||
Reference in new issue
Block a user