[Pkg-javascript-commits] [jquery-migrate-1] 01/03: Use version agnostic scripts
Jean-Michel Vourgère
nirgal at moszumanska.debian.org
Wed May 4 22:01:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
nirgal pushed a commit to branch master
in repository jquery-migrate-1.
commit bc5b6ba80b9e1641b1cbc169733ca4cfcff62797
Author: Jean-Michel Nirgal Vourgère <jmv_deb at nirgal.com>
Date: Wed May 4 23:31:29 2016 +0200
Use version agnostic scripts
Also fix get-orig-source rule
---
debian/clean | 1 +
debian/rules | 13 ++++++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/debian/clean b/debian/clean
index 98ea903..08acb1b 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1 +1,2 @@
jquery-migrate-1*min.js
+jquery-migrate-1.js
diff --git a/debian/rules b/debian/rules
index c83ecf5..df945c3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,18 @@
#!/usr/bin/make -f
#export DH_VERBOSE=1
+VERSION = $(shell dpkg-parsechangelog -S Version | cut -d- -f1)
%:
dh $@
override_dh_auto_build:
- yui-compressor --nomunge jquery-migrate-1.4.0.js -o jquery-migrate-1.4.0.min.js
+ yui-compressor --nomunge jquery-migrate-${VERSION}.js -o jquery-migrate-${VERSION}.min.js
+ ln -s jquery-migrate-${VERSION}.js jquery-migrate-1.js
+ ln -s jquery-migrate-${VERSION}.min.js jquery-migrate-1.min.js
-get-orig-source:
- VERSION=$(shell dpkg-parsechangelog -S Version | cut -d- -f1) ; \
- rm -f jquery-migrate-1*min.js ; \
- tar czf ../jquery-migrate-1_$${VERSION}.orig.tar.gz jquery-migrate-*.js
+get-orig-source: clean
+ rm -f jquery-migrate-1*min.js
+ wget https://code.jquery.com/jquery-migrate-${VERSION}.js -O jquery-migrate-${VERSION}.js
+ tar czf ../jquery-migrate-1_${VERSION}.orig.tar.gz jquery-migrate-${VERSION}.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jquery-migrate-1.git
More information about the Pkg-javascript-commits
mailing list