]>
Commit | Line | Data |
---|---|---|
5fd5ce08 PH |
1 | default: update |
2 | ||
3 | update: update-readme | |
4618f3da PH |
4 | |
5 | ||
6 | update-readme: | |
7 | @options=$$(COLUMNS=80 ./youtube-dl --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/### \1/') && \ | |
8 | header=$$(sed -e '/.*## OPTIONS/,$$ d' README.md) && \ | |
9 | footer=$$(sed -e '1,/.*## COPYRIGHT/ d' README.md) && \ | |
10 | echo "$${header}" > README.md && \ | |
11 | echo -e '\n## OPTIONS' >> README.md && \ | |
12 | echo "$${options}" >> README.md&& \ | |
13 | echo -e '\n## COPYRIGHT' >> README.md && \ | |
14 | echo "$${footer}" >> README.md | |
15 | ||
16 | ||
17 | ||
5fd5ce08 | 18 | .PHONY: default update update-readme |