[Pkg-javascript-commits] [jquery] 02/07: check to be run before uploading

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Aug 29 01:46:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository jquery.

commit bf124b44e543023aa1f5d82a8d705114c7656b69
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Fri Aug 28 22:21:48 2015 -0300

    check to be run before uploading
---
 debian/build.mk      |  6 ++++++
 debian/release-check | 15 +++++++++++++++
 debian/rules         |  5 +++++
 3 files changed, 26 insertions(+)

diff --git a/debian/build.mk b/debian/build.mk
index c794d77..3ed907d 100644
--- a/debian/build.mk
+++ b/debian/build.mk
@@ -18,6 +18,12 @@ dist/jquery.min.js dist/jquery.min.map: dist/jquery.js
 		--output dist/jquery.min.js \
 		$^
 
+diff: build
+	tmpdir=$$(mktemp -d); \
+		wget --directory-prefix=$$tmpdir \
+			http://code.jquery.com/jquery-$(version).js; \
+		diff -u $$tmpdir/jquery-$(version).js dist/jquery.js
+
 clean:
 	$(RM) -rf dist/
 	$(RM) build.js
diff --git a/debian/release-check b/debian/release-check
new file mode 100755
index 0000000..de18d6d
--- /dev/null
+++ b/debian/release-check
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+rc=0
+./debian/rules diff || rc=$?
+./debian/rules clean
+
+if [ "$rc" -ne 0 ]; then
+  printf "Proceed? [y/N]"
+  read proceed
+  if [ "$proceed" != y -a "$proceed" != Y ]; then
+    exit 1
+  fi
+fi
diff --git a/debian/rules b/debian/rules
index f36079e..d8cf450 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,5 +10,10 @@ override_dh_auto_clean:
 	make -f debian/build.mk clean
 	dh_auto_clean
 
+# used by the maintainer to check whether our build matches the one from
+# upstream
+diff:
+	make -f debian/build.mk $@
+
 %:
 	dh $@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jquery.git



More information about the Pkg-javascript-commits mailing list