]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Simplify Makefile
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 6 Jan 2013 22:02:31 +0000 (23:02 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 6 Jan 2013 22:02:31 +0000 (23:02 +0100)
.tarignore [deleted file]
Makefile

diff --git a/.tarignore b/.tarignore
deleted file mode 100644 (file)
index 986afee..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-updates_key.pem
-*.pyc
-*.pyo
-youtube-dl.exe
-wine-py2exe/
-py2exe.log
-*.kate-swp
-build/
-dist/
-MANIFEST
-*.DS_Store
-youtube-dl.tar.gz
-.coverage
-cover/
-__pycache__/
-.git/
-*~
index 0069e79753205499cb104b73179d1acaf16eae8f..b629304e52fa609d120262f605360affbeafbc5c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,9 @@ test:
        #nosetests --with-coverage --cover-package=youtube_dl --cover-html --verbose --processes 4 test
        nosetests --verbose test
 
-.PHONY: all clean install test
+tar: youtube-dl.tar.gz
+
+.PHONY: all clean install test tar
 
 youtube-dl: youtube_dl/*.py
        zip --quiet youtube-dl youtube_dl/*.py
@@ -43,5 +45,22 @@ youtube-dl.bash-completion: youtube_dl/*.py devscripts/bash-completion.in
        python devscripts/bash-completion.py
 
 youtube-dl.tar.gz: all
-       tar -cvzf youtube-dl.tar.gz -s "|^./|./youtube-dl/|" \
-               --exclude-from=".tarignore" -- .
+       @tar -czf youtube-dl.tar.gz --transform "s|^./|./youtube-dl/|" --owner 0 --group 0 \
+               --exclude-vcs \
+               --exclude '*.DS_Store' \
+               --exclude '*.kate-swp' \
+               --exclude '*.pyc' \
+               --exclude '*.pyo' \
+               --exclude '*~' \
+               --exclude '__pycache' \
+               --exclude 'build' \
+               --exclude 'cover' \
+               --exclude '.coverage' \
+               --exclude 'dist' \
+               --exclude 'MANIFEST' \
+               --exclude 'py2exe.log' \
+               --exclude 'updates_key.pem' \
+               --exclude 'wine-py2exe' \
+               --exclude 'youtube-dl.exe' \
+               --exclude 'youtube-dl.tar.gz' \
+               -- .