mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-22 20:20:09 +09:00
Update Makefile to new README format
This commit is contained in:
parent
447b1d7170
commit
8f88eb1fa7
4
Makefile
4
Makefile
@ -6,11 +6,11 @@ update: update-readme
|
|||||||
update-readme:
|
update-readme:
|
||||||
@options=$$(COLUMNS=80 ./youtube-dl --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/### \1/') && \
|
@options=$$(COLUMNS=80 ./youtube-dl --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/### \1/') && \
|
||||||
header=$$(sed -e '/.*## OPTIONS/,$$ d' README.md) && \
|
header=$$(sed -e '/.*## OPTIONS/,$$ d' README.md) && \
|
||||||
footer=$$(sed -e '1,/.*## COPYRIGHT/ d' README.md) && \
|
footer=$$(sed -e '1,/.*## FAQ/ d' README.md) && \
|
||||||
echo "$${header}" > README.md && \
|
echo "$${header}" > README.md && \
|
||||||
echo -e '\n## OPTIONS' >> README.md && \
|
echo -e '\n## OPTIONS' >> README.md && \
|
||||||
echo "$${options}" >> README.md&& \
|
echo "$${options}" >> README.md&& \
|
||||||
echo -e '\n## COPYRIGHT' >> README.md && \
|
echo -e '\n## FAQ' >> README.md && \
|
||||||
echo "$${footer}" >> README.md
|
echo "$${footer}" >> README.md
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ which means you can modify it, redistribute it or use it however you like.
|
|||||||
## OPTIONS
|
## OPTIONS
|
||||||
-h, --help print this help text and exit
|
-h, --help print this help text and exit
|
||||||
-v, --version print program version and exit
|
-v, --version print program version and exit
|
||||||
-U, --update update this program to latest stable version
|
-U, --update update this program to latest version
|
||||||
-i, --ignore-errors continue on download errors
|
-i, --ignore-errors continue on download errors
|
||||||
-r, --rate-limit LIMIT download rate limit (e.g. 50k or 44.6m)
|
-r, --rate-limit LIMIT download rate limit (e.g. 50k or 44.6m)
|
||||||
-R, --retries RETRIES number of retries (default is 10)
|
-R, --retries RETRIES number of retries (default is 10)
|
||||||
|
Loading…
Reference in New Issue
Block a user