]> jfr.im git - yt-dlp.git/blame - Makefile
Merge pull request #238 from rbrito/add-to-gitignore
[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
PH
12 echo "$${header}" > README.md && \
13 echo -e '\n## OPTIONS' >> README.md && \
14 echo "$${options}" >> README.md&& \
8f88eb1f 15 echo -e '\n## FAQ' >> README.md && \
4618f3da
PH
16 echo "$${footer}" >> README.md
17
235b3ba4
PH
18compile:
19 cp youtube_dl/__init__.py youtube-dl
4618f3da 20
235b3ba4 21.PHONY: default compile update update-latest update-readme