]> git.bitcoin.ninja Git - youtube-dl/commitdiff
youtube-dl.tar.gz make target
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Fri, 7 Dec 2012 13:46:14 +0000 (14:46 +0100)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Fri, 7 Dec 2012 13:46:14 +0000 (14:46 +0100)
.gitignore
Makefile

index 9619a7dfde9f11b4e6fade671b18b138cb77f505..996489d8ec6becd3a441cdbecd1f83c31eea944d 100644 (file)
@@ -12,3 +12,4 @@ youtube-dl.1
 youtube-dl.bash-completion
 youtube-dl
 youtube-dl.exe
+youtube-dl.tar.gz
index dbb315dc73a9a86009e3124743e96ce002d27945..e152b00ac2c70ad74f36fa1cd7aa67c8ce6c3856 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,3 +42,9 @@ youtube-dl.bash-completion: README.md youtube-dl.bash-completion.in
        @options=`egrep -o '(--[a-z-]+) ' README.md | sort -u | xargs echo` && \
                content=`sed "s/opts=\"[^\"]*\"/opts=\"$${options}\"/g" youtube-dl.bash-completion.in` && \
                echo "$${content}" > youtube-dl.bash-completion
+
+youtube-dl.tar.gz: all
+       tar -czf youtube-dl.tar.gz -s "|^./|./youtube-dl/|" \
+               --exclude="*.pyc" --exclude="*.pyo" --exclude="*~" --exclude="youtube-dl.exe" \
+               --exclude="wine-py2exe/" --exclude="py2exe.log" --exclude="*.kate-swp" \
+               --exclude="build/" --exclude="dist/" --exclude="MANIFEST" --exclude=".git/" .