3 update: compile update-readme update-latest
6 ./youtube-dl.dev --version > LATEST_VERSION
9 @options=$$(COLUMNS=80 ./youtube-dl.dev --help | sed -e '1,/.*General Options.*/ d' -e 's/^\W\{2\}\(\w\)/### \1/') && \
10 header=$$(sed -e '/.*## OPTIONS/,$$ d' README.md) && \
11 footer=$$(sed -e '1,/.*## FAQ/ d' README.md) && \
12 echo "$${header}" > README.md && \
13 echo >> README.md && \
14 echo '## OPTIONS' >> README.md && \
15 echo "$${options}" >> README.md&& \
16 echo >> README.md && \
17 echo '## FAQ' >> README.md && \
18 echo "$${footer}" >> README.md
21 zip --quiet --junk-paths youtube-dl youtube_dl/*.py
22 echo '#!/usr/bin/env python' > youtube-dl
23 cat youtube-dl.zip >> youtube-dl
26 .PHONY: default compile update update-latest update-readme