Commit cb7429fc authored by Dmitry Shachnev's avatar Dmitry Shachnev 🐧

Stop symlinking rst2html4 → rst2html, use upstream script instead.

parent 7a490e62
......@@ -4,6 +4,7 @@ python-docutils (0.14+dfsg-1) UNRELEASED; urgency=medium
* Update debian/watch to properly mangle upstream pre-releases.
* Drop get_column_widths-compatibility.diff, applied upstream.
* Refresh and rebase other patches.
* Stop symlinking rst2html4 → rst2html, use upstream script instead.
-- Dmitry Shachnev <mitya57@debian.org> Tue, 19 Sep 2017 00:17:27 +0300
......
......@@ -95,14 +95,12 @@ 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 rst2html4,$(scripts)); do \
for exe in $(filter-out rst-buildhtml,$(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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment