[Pkg-javascript-commits] [SCM] jqueryui branch, master, updated. debian/1.7.1-1-38-gaaa5774
Marcelo Jorge Vieira
metal at alucinados.com
Mon May 9 22:21:04 UTC 2011
The following commit has been merged in the master branch:
commit fb90b85860e27571f54754478d866822466eb1a4
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date: Sun Feb 27 17:49:58 2011 -0300
Create get-orig-source rule to remove some files from source
diff --git a/debian/rules b/debian/rules
index b4b7f32..26d687b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,3 +21,28 @@ override_dh_auto_clean:
rm -f $(DH_LINKS_FILE)
rm -rf $(BUILD_DIR)
dh_auto_clean
+
+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 ; \
+ mkdir jqueryui-$$VERSION; \
+ unzip -q jquery-ui-$$VERSION.custom.zip -d jqueryui-$$VERSION; \
+ cd jqueryui-$$VERSION; \
+ rm -rf js ; \
+ rm -f development-bundle/jquery-*.js ; \
+ rm -rf development-bundle/external ; \
+ rm -rf development-bundle/ui/minified/ ; \
+ cd .. ; \
+ tar c jqueryui-$$VERSION | gzip -9 > jqueryui_$$VERSION+dfsg.orig.tar.gz ; \
+ rm -rf jqueryui-$$VERSION ; \
+ mv jqueryui_$$VERSION+dfsg.orig.tar.gz $$OUTDIR ; \
+ cd $$OUTDIR ; \
+ rm -rf $$TMP ; \
+ echo Saved file at jqueryui_$$VERSION+dfsg.orig.tar.gz
--
jqueryui
More information about the Pkg-javascript-commits
mailing list