[Python-modules-commits] [python-docutils] 01/02: Install rst2html4 as a symlink to rst2html, to match the documentation.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Sat Dec 10 19:00:01 UTC 2016


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

mitya57 pushed a commit to branch master
in repository python-docutils.

commit 3bbfce7d9224f0fce9a7a2931ca16da659ca7ffd
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Sat Dec 10 21:54:18 2016 +0300

    Install rst2html4 as a symlink to rst2html, to match the documentation.
    
    This is a stop-gap measure until the new upstream release.
---
 debian/changelog     |  2 ++
 debian/rst2html4.txt | 12 ++++++++++++
 debian/rst2html5.txt | 12 ++++++++++++
 debian/rules         |  6 +++++-
 4 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 558abb5..9f510fa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,8 @@ python-docutils (0.13.1+dfsg-1) UNRELEASED; urgency=medium
   * Run cp with -L argument when copying the test/ directory for running
     the autopkgtest, because CSS files in test/functional/input/data/ are
     now symlinks.
+  * Install rst2html4 as a symlink to rst2html, to match the documentation.
+    This is a stop-gap measure until the new upstream release.
 
  -- Dmitry Shachnev <mitya57 at debian.org>  Fri, 09 Dec 2016 18:06:43 +0300
 
diff --git a/debian/rst2html4.txt b/debian/rst2html4.txt
new file mode 100644
index 0000000..e99d939
--- /dev/null
+++ b/debian/rst2html4.txt
@@ -0,0 +1,12 @@
+=========
+rst2html4
+=========
+
+-------------------------------
+convert reST documents to XHTML
+-------------------------------
+
+:Manual section: 1
+:Manual group: text processing
+
+
diff --git a/debian/rst2html5.txt b/debian/rst2html5.txt
new file mode 100644
index 0000000..b06ceec
--- /dev/null
+++ b/debian/rst2html5.txt
@@ -0,0 +1,12 @@
+=========
+rst2html5
+=========
+
+--------------------------------
+convert reST documents to HTML 5
+--------------------------------
+
+:Manual section: 1
+:Manual group: text processing
+
+
diff --git a/debian/rules b/debian/rules
index ca51d90..c56ffed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,8 @@ export PYTHONHASHSEED=random
 scripts = \
 	rst-buildhtml \
 	rst2html \
+	rst2html4 \
+	rst2html5 \
 	rst2latex \
 	rst2man \
 	rst2odt \
@@ -93,12 +95,14 @@ install: build
 	find debian/tmp/ -type d -empty -delete
 	sed -i -e 's/^\(_debian_package\) = /\1 = 1/' debian/tmp/usr/lib/python[23]*/*-packages/docutils/__init__.py
 	# Give scripts canonical names
+	# Temporarily symlink rst2html4 to rst2html, remove this with the next release
 	mkdir -p debian/tmp/usr/share/docutils/scripts/python2/
 	set -ex && for python in python2 python3; do \
 		dir=debian/tmp/usr/share/docutils/scripts/$$python/; \
-		for exe in $(filter-out rst-buildhtml,$(scripts)); do \
+		for exe in $(filter-out rst-buildhtml rst2html4,$(scripts)); do \
 			mv $$dir/$$exe.py $$dir/$$exe; \
 		done; \
+		ln -s rst2html $$dir/rst2html4; \
 		install tools/buildhtml.py $$dir/rst-buildhtml; \
 		sed -i -e "1 s,^#!.*,#!/usr/bin/$${python%2}," $$dir/rst-buildhtml; \
 	done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-docutils.git



More information about the Python-modules-commits mailing list