From 23109d6a9c7d8f2569a9adba517e90767e201bf4 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Fri, 7 Dec 2012 14:46:14 +0100 Subject: [PATCH] youtube-dl.tar.gz make target --- .gitignore | 1 + Makefile | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 9619a7dfd..996489d8e 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ youtube-dl.1 youtube-dl.bash-completion youtube-dl youtube-dl.exe +youtube-dl.tar.gz diff --git a/Makefile b/Makefile index dbb315dc7..e152b00ac 100644 --- 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/" . -- 2.22.2