13 608 B

12345678910111213141516171819
  1. #Makefile: creates the executable zipfile
  2. #ln=
  3. youtube-dl: youtube_dl/*.py youtube_dl/*/*.py
  4. mkdir -p zip
  5. for d in youtube_dl youtube_dl/downloader youtube_dl/extractor youtube_dl/postprocessor ; do \
  6. mkdir -p zip/$$d ;\
  7. cp -pPR $$d/*.py zip/$$d/ ;\
  8. done
  9. touch -t 200001010101 zip/youtube_dl/*.py zip/youtube_dl/*/*.py
  10. mv zip/youtube_dl/__main__.py zip/
  11. cd zip ; zip -q ../youtube-dl youtube_dl/*.py youtube_dl/*/*.py __main__.py
  12. rm -rf zip
  13. echo '#!$(PYTHON)' > youtube-dl
  14. cat youtube-dl.zip >> youtube-dl
  15. rm youtube-dl.zip
  16. chmod a+x youtube-dl
  17. README.md: youtube_dl/*.py youtube_dl/*/*.py