summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny A. Solbu <github@solbu.net>2020-10-31 20:44:52 +0100
committerGitHub <noreply@github.com>2020-10-31 15:44:52 -0400
commite87ce51b0b9efbaf997e7d804c74993ed3270ca4 (patch)
tree0f96f3acfcc3136dfafd8a414af14352915ba27f
parent61442148a256fecc6d7f8a203a7f2b11c59adabc (diff)
[fix] The Makefile does not properly generate a release tarball (#18)
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3e17365b8..e57ab9b39 100644
--- a/Makefile
+++ b/Makefile
@@ -117,8 +117,9 @@ _EXTRACTOR_FILES = $(shell find youtube_dl/extractor -iname '*.py' -and -not -in
youtube_dl/extractor/lazy_extractors.py: devscripts/make_lazy_extractors.py devscripts/lazy_load_template.py $(_EXTRACTOR_FILES)
$(PYTHON) devscripts/make_lazy_extractors.py $@
-youtube-dl.tar.gz: youtube-dl README.md README.txt youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtube-dl.fish ChangeLog AUTHORS
- @tar -czf youtube-dl.tar.gz --transform "s|^|youtube-dl/|" --owner 0 --group 0 \
+VERSION = $(shell grep version youtube_dl/version.py |cut -f2 -d "'")
+youtube-dl.tar.gz: README.md README.txt youtube-dl.1 youtube-dl.bash-completion youtube-dl.zsh youtube-dl.fish ChangeLog AUTHORS
+ @tar -czf youtube-dl-$(VERSION).tar.gz --transform "s|^|youtube-dl-$(VERSION)/|" --owner 0 --group 0 \
--exclude '*.DS_Store' \
--exclude '*.kate-swp' \
--exclude '*.pyc' \
@@ -132,4 +133,3 @@ youtube-dl.tar.gz: youtube-dl README.md README.txt youtube-dl.1 youtube-dl.bash-
ChangeLog AUTHORS LICENSE README.md README.txt \
Makefile MANIFEST.in youtube-dl.1 youtube-dl.bash-completion \
youtube-dl.zsh youtube-dl.fish setup.py setup.cfg \
- youtube-dl