[Pkg-xmpp-commits] [SCM] jsjac package from xmpp team branch, master, updated. upstream/1.3.1-34-g86c5f24
Thadeu Lima de Souza Cascardo
cascardo at holoscopio.com
Sat Aug 21 03:32:20 UTC 2010
The following commit has been merged in the master branch:
commit 82a61f7ae7e5c7a3afb85fb9ed4bf3141884971b
Author: Thadeu Lima de Souza Cascardo <cascardo at holoscopio.com>
Date: Fri Aug 20 23:13:24 2010 -0300
Create get-orig-source rule to remove some files from source.
diff --git a/debian/rules b/debian/rules
index cbe925d..0d750ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,3 +1,26 @@
#!/usr/bin/make -f
%:
dh $@
+
+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 jsjac_$$VERSION.orig.tar.gz ; \
+ cd jsjac-$$VERSION ; \
+ make clean ; \
+ rm -f utils/jsmin utils/jsmin.c utils/fulljslint.js utils/rhino.js ; \
+ rm -f utils/Makefile ; \
+ cd .. ; \
+ tar c jsjac-$$VERSION | gzip -9 > jsjac_$$VERSION+dfsg.orig.tar.gz ; \
+ rm -rf jsjac-$$VERSION ; \
+ cp jsjac_$$VERSION+dfsg.orig.tar.gz $$OUTDIR ; \
+ cd $$OUTDIR ; \
+ rm -rf $$TMP ; \
+ echo Saved file at jsjac_$$VERSION+dfsg.orig.tar.gz
--
jsjac package from xmpp team
More information about the Pkg-xmpp-commits
mailing list