[Pkg-javascript-commits] [SCM] Packaging of mathjax-docs branch, master, updated. 2.1+20121206-1-5-g35eb8a0

Dmitry Shachnev mitya57 at gmail.com
Wed May 8 19:40:16 UTC 2013


The following commit has been merged in the master branch:
commit 3fe44b025e43e2d9a5244f2313e9f4d23064b8f7
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Wed May 8 23:22:36 2013 +0400

    debian/rules: switch to v2.1-latest branch, break on download errors.

diff --git a/debian/changelog b/debian/changelog
index 65e19c1..75b86e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 mathjax-docs (2.1+20121206-2) UNRELEASED; urgency=low
 
   * Use canonical Vcs-Git URI (fixes lintian warning).
+  * debian/rules: switch to v2.1-latest branch, break on download errors.
 
  -- Dmitry Shachnev <mitya57 at gmail.com>  Sun, 03 Feb 2013 20:12:52 +0400
 
diff --git a/debian/rules b/debian/rules
index e65d168..228dce7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,11 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-MJ_COMMITS = https://github.com/mathjax/mathjax-docs/commits/master
-MJ_CONFIG  = https://raw.github.com/mathjax/mathjax-docs/master/conf.py
-MJ_TARBALL = https://github.com/mathjax/mathjax-docs/archive/master.tar.gz
+BRANCH = v2.1-latest
+
+MJ_COMMITS = https://github.com/mathjax/mathjax-docs/commits/$(BRANCH)
+MJ_CONFIG  = https://raw.github.com/mathjax/mathjax-docs/$(BRANCH)/conf.py
+MJ_TARBALL = https://github.com/mathjax/mathjax-docs/archive/$(BRANCH).tar.gz
 
 %:
 	dh $@ --with sphinxdoc
@@ -20,8 +22,8 @@ override_dh_builddeb:
 	dh_builddeb -- -Zxz
 
 get-orig-source:
-	base_version=`wget $(MJ_CONFIG) -qO- | grep -P "(?<=version = ').+(?=')" -o`; \
-	date=`wget $(MJ_COMMITS) -qO- | grep -P '\d{4}-\d\d-\d\d' -o | sed 's/-//g' | head -n1`; \
-	filename=mathjax-docs_$$base_version+$$date.orig.tar.gz; \
-	wget $(MJ_TARBALL) -qO $$filename; \
+	base_version=`wget $(MJ_CONFIG) -qO- | grep -P "(?<=version = ').+(?=')" -o` && \
+	date=`wget $(MJ_COMMITS) -qO- | grep -P '\d{4}-\d\d-\d\d' -o | sed 's/-//g' | head -n1` && \
+	filename=mathjax-docs_$$base_version+$$date.orig.tar.gz && \
+	wget $(MJ_TARBALL) -qO $$filename && \
 	echo "Successfully downloaded tarball and saved to $$filename."

-- 
Packaging of mathjax-docs



More information about the Pkg-javascript-commits mailing list