[Pkg-javascript-commits] [SCM] Packaging of mathjax branch, master, updated. 2.0.3-2-19-gad81584

Dmitry Shachnev mitya57 at gmail.com
Thu Dec 20 12:57:25 UTC 2012


The following commit has been merged in the master branch:
commit ad81584fb5d133c2950f0f8011f235abca1ea258
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Thu Dec 20 16:54:40 2012 +0400

    Restore original compressed files in clean target (not build).

diff --git a/debian/changelog b/debian/changelog
index f0296b4..d0782e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ mathjax (2.1+20121028-1) UNRELEASED; urgency=low
     Andrew Starr-Bochicchio for the suggestion).
   * Split out the fonts to fonts-mathjax and fonts-mathjax-extras
     packages.
+  * Restore original compressed files in clean target (not build).
 
  -- Dmitry Shachnev <mitya57 at gmail.com>  Tue, 20 Dec 2012 12:46:57 +0400
 
diff --git a/debian/rules b/debian/rules
index 96610ef..3a8a881 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,13 +14,15 @@ override_dh_auto_build:
 	./debian/combiner/combineMJ --force
 	dh_auto_build
 
-override_dh_install:
-	dh_install
+override_dh_auto_clean:
+	dh_auto_clean
 	# Revert original compressed files
-	rm -r MathJax.js config/ extensions/ jax/
-	mv old-compressed/imagedata.js fonts/HTML-CSS/TeX/png/
-	mv old-compressed/* .
-	rm -r old-compressed/
+	if [ -d old-compressed ]; then \
+		rm -rf MathJax.js config/ extensions/ jax/; \
+		mv old-compressed/imagedata.js fonts/HTML-CSS/TeX/png/; \
+		mv old-compressed/* .; \
+		rm -r old-compressed/; \
+	fi
 
 override_dh_builddeb:
 	dh_builddeb -- -Zxz

-- 
Packaging of mathjax



More information about the Pkg-javascript-commits mailing list