]> jfr.im git - yt-dlp.git/blame - Makefile
Merge branch 'next-url'
[yt-dlp.git] / Makefile
CommitLineData
5fd5ce08
PH
1default: update
2
235b3ba4 3update: compile update-readme update-latest
4618f3da 4
b576abb4 5update-latest:
cb6568bf 6 ./youtube-dl.dev --version > LATEST_VERSION
4618f3da
PH
7
8update-readme:
cb6568bf 9 @options=$$(COLUMNS=80 ./youtube-dl.dev --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/### \1/') && \
4618f3da 10 header=$$(sed -e '/.*## OPTIONS/,$$ d' README.md) && \
8f88eb1f 11 footer=$$(sed -e '1,/.*## FAQ/ d' README.md) && \
4618f3da 12 echo "$${header}" > README.md && \
66e87777
RB
13 echo >> README.md && \
14 echo '## OPTIONS' >> README.md && \
4618f3da 15 echo "$${options}" >> README.md&& \
66e87777
RB
16 echo >> README.md && \
17 echo '## FAQ' >> README.md && \
4618f3da
PH
18 echo "$${footer}" >> README.md
19
235b3ba4
PH
20compile:
21 cp youtube_dl/__init__.py youtube-dl
4618f3da 22
235b3ba4 23.PHONY: default compile update update-latest update-readme