Commit 1edcecd8 authored by Tianon Gravi's avatar Tianon Gravi

Fix installed binary names and alternatives (Closes: #857308)

parent 2d2b335c
hy (0.12.1-2) UNRELEASED; urgency=medium
* Fix installed binary names and alternatives (Closes: #857308)
-- Tianon Gravi <tianon@debian.org> Fri, 10 Mar 2017 15:56:38 -0800
hy (0.12.1-1) unstable; urgency=medium
* Update to 0.12.1 upstream release
......
......@@ -32,11 +32,25 @@ override_dh_auto_test:
override_dh_auto_install:
dh_auto_install
# make sure all python-hy binaries have a "2" suffix
# (skip binaries that already have a "2" suffix)
for bin in debian/python-hy/usr/bin/*; do \
mv -v $$bin $${bin}2; \
[ "$${bin%2}" = "$${bin}" ] || continue; \
if [ -e "$${bin}2" ]; then \
rm -v "$${bin}"; \
else \
mv "$${bin}" "$${bin}2"; \
fi; \
done
# make sure all python3-hy binaries have a "3" suffix
# (skip binaries that already have a "3" suffix)
for bin in debian/python3-hy/usr/bin/*; do \
mv -v $$bin $${bin}3; \
[ "$${bin%3}" = "$${bin}" ] || continue; \
if [ -e "$${bin}3" ]; then \
rm -v "$${bin}"; \
else \
mv "$${bin}" "$${bin}3"; \
fi; \
done
override_dh_installchangelogs:
......
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