mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
help: fix typos in help.awk
This commit is contained in:
parent
6a70c9ba52
commit
9637d9ec0b
6
help.awk
6
help.awk
@ -1,20 +1,18 @@
|
|||||||
#!/usr/bin/env awk
|
#!/usr/bin/env awk
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
FS = ":.*?## "
|
FS = ":.*?## "
|
||||||
first = 1
|
first = 1
|
||||||
COLOR_BROWN = "\033[33m"
|
COLOR_BROWN = "\033[33m"
|
||||||
COLOR_DARKGREEN = "\033[36m"
|
COLOR_DARKGREEN = "\033[36m"
|
||||||
COLOR_RESET = "\033[0m"
|
COLOR_RESET = "\033[0m"
|
||||||
} /^[a-zA-Z0-9_-]+:.*?## / {
|
} /^[a-zA-Z0-9_-]+:.*?## / {
|
||||||
printf COLOR_DARKGREEN
|
printf COLOR_DARKGREEN
|
||||||
printf " make %-20s", $1
|
printf " make %-20s", $1
|
||||||
printf COLOR_RESET
|
printf COLOR_RESET
|
||||||
printf " %s\n", $2
|
printf " %s\n", $2
|
||||||
} /^##(.*)/ {
|
} /^##(.*)/ {
|
||||||
if (!first)
|
if (!first)
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "%s%s\n", COLOR_BROWN, substr($0, 4)
|
printf "%s%s\n", COLOR_BROWN, substr($0, 4)
|
||||||
first = 0
|
first = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user