[packages/phantomjs/dev-2.1: 7/9] filter out more unmatching stuff

glen glen at pld-linux.org
Wed Mar 23 07:06:09 CET 2016


commit 2b0ddc5251f6faed2e368b44eec176cb735545ad
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 23 07:42:34 2016 +0200

    filter out more unmatching stuff

 get-source.sh | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/get-source.sh b/get-source.sh
index 17372c7..737d5e6 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -38,13 +38,27 @@ fetch_package() {
 	git fetch phantom
 }
 
+filter() {
+	filterdiff -p1 \
+		-x '*.qdoc' \
+		-x '*/.git*' \
+		-x '.git*' \
+		-x '.tag' \
+		-x 'INSTALL' \
+		-x 'tests/*' \
+		-x 'doc/*' \
+	| sed -re '/^(diff --git)/d'
+
+}
+
 get_package() {
 	local package=$1 ref=$2
 	export GIT_DIR=$package.git
 	fetch_package $package
 	git diff $tag..$ref --diff-filter=MA > diff.tmp
-	xz -9 diff.tmp
-	mv -f diff.tmp.xz $package.diff.xz
+	filter < diff.tmp > filtered.tmp
+	mv filtered.tmp $package.diff
+	xz -9f $package.diff
 }
 
 get_package qtbase $phantom_qtbase
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/phantomjs.git/commitdiff/a82c74c1bebc21f1e68a4deede33d5d9c92de44c



More information about the pld-cvs-commit mailing list