[Pkg-javascript-commits] [SCM] flot branch, master, updated. debian/0.6-1-11-ga6a39b8

Marcelo Jorge Vieira metal at alucinados.com
Sun Jun 26 18:47:24 UTC 2011


The following commit has been merged in the master branch:
commit fca980817d2ffa515aef16746d6e4f4ac2720f86
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date:   Sat Jun 25 16:49:23 2011 -0300

    Create get-orig-source rule to remove some files from source

diff --git a/debian/rules b/debian/rules
index 281dc73..ef3505d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,3 +9,28 @@ override_dh_auto_build:
 
 override_dh_auto_clean:
 	rm -f *.min.js
+
+get-orig-source:
+	OUTDIR=$$PWD ; \
+	MAKEFILE=`echo $(MAKEFILE_LIST) | awk '{ print $$1 }'` ; \
+	FILE=`readlink -f $$MAKEFILE` ; \
+	DIR=`dirname $$FILE` ; \
+	cd $$DIR/.. ; \
+	TMP=`mktemp -d` ; \
+	if ! USCAN=`uscan --destdir $$TMP` ; then exit 1 ; fi ; \
+	VERSION=`echo $$USCAN | sed -n 's/.*Newer version (\(.*\)) available.*/\1/p'` ; \
+	cd $$TMP ; \
+	tar xzf flot-$$VERSION.tar.gz ; \
+	mv flot flot-$$VERSION; \
+	cd flot-$$VERSION; \
+	rm -f Makefile ; \
+	rm -f *.min.js  ; \
+	rm -f jquery.js ; \
+	rm -f excanvas.js ; \
+	cd .. ; \
+	tar c flot-$$VERSION | gzip -9 > flot_$$VERSION+dfsg.orig.tar.gz ; \
+	rm -rf flot-$$VERSION ; \
+	mv flot_$$VERSION+dfsg.orig.tar.gz $$OUTDIR ; \
+	cd $$OUTDIR ; \
+	rm -rf $$TMP ; \
+	echo Saved file at flot_$$VERSION+dfsg.orig.tar.gz

-- 
flot



More information about the Pkg-javascript-commits mailing list