| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
if [ "$1" = install ] || [ "$1" = upgrade ] |
| 6 |
then |
| 7 |
dpkg-divert --add --package libjson-pp-perl --rename \ |
| 8 |
--divert /usr/bin/json_pp.bundled /usr/bin/json_pp |
| 9 |
|
| 10 |
# this diversion is needed even if we don't actually ship json_pp.1.gz, |
| 11 |
# because otherwise it takes precedence over json_pp.1p.gz (which we do |
| 12 |
# ship) |
| 13 |
dpkg-divert --add --package libjson-pp-perl --rename \ |
| 14 |
--divert /usr/share/man/man1/json_pp.bundled.1.gz /usr/share/man/man1/json_pp.1.gz |
| 15 |
fi |
| 16 |
|
| 17 |
# dh_installdeb will replace this with shell code automatically |
| 18 |
# generated by other debhelper scripts. |
| 19 |
|
| 20 |
#DEBHELPER# |
| 21 |
|
| 22 |
exit 0 |