[Pkg-javascript-commits] [SCM] Packaging of mathjax-docs branch, master, updated. ebecb886be31ab7bacac3efa6cb4e70b51669dd4

Dmitry Shachnev mitya57 at gmail.com
Fri Dec 21 16:29:55 UTC 2012


The following commit has been merged in the master branch:
commit 0f02d6292496bf1b416b7bcc16f2b8e693ad54f3
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Fri Dec 21 20:25:56 2012 +0400

    Added get-orig-source target to debian/rules.

diff --git a/debian/changelog b/debian/changelog
index 37061c0..39ee8f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,4 +6,4 @@ mathjax-docs (2.1+20121206-1) UNRELEASED; urgency=low
   * debian/patches/no_mathjax_js_in_documentation.patch:
     Remove reference to MathJax.js from mjtheme/layout.html.
 
- -- Dmitry Shachnev <mitya57 at gmail.com>  Mon, 17 Dec 2012 12:27:58 +0400
+ -- Dmitry Shachnev <mitya57 at gmail.com>  Fri, 21 Dec 2012 20:25:46 +0400
diff --git a/debian/rules b/debian/rules
index 6f04d1d..e65d168 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,10 @@
 #!/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
+
 %:
 	dh $@ --with sphinxdoc
 
@@ -14,3 +18,10 @@ override_dh_auto_clean:
 
 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; \
+	echo "Successfully downloaded tarball and saved to $$filename."

-- 
Packaging of mathjax-docs



More information about the Pkg-javascript-commits mailing list