mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-25 08:17:32 +02:00
30 lines
487 B
Awk
Executable File
30 lines
487 B
Awk
Executable File
#!/usr/bin/awk -f
|
|
|
|
# Start echoing after the first list item
|
|
/\* / {
|
|
STARTED=1
|
|
EMPTY_LINE=0
|
|
}
|
|
|
|
# Remember if we have seen an empty line
|
|
/^[[:space:]]*$/ {
|
|
EMPTY_LINE=1
|
|
}
|
|
|
|
# Exit when seeing a new version number
|
|
/^v[[:digit:]]/ {
|
|
if (STARTED) exit
|
|
}
|
|
|
|
# Print if the line is not empty
|
|
# and restore the empty line we have skipped
|
|
!/^[[:space:]]*$/ {
|
|
if (STARTED) {
|
|
if (EMPTY_LINE) {
|
|
print ""
|
|
EMPTY_LINE=0
|
|
}
|
|
print
|
|
}
|
|
}
|