/usr/share/doc/debiandoc-sgml/examples/debiandoc2dbk-unent is in debiandoc-sgml 1.2.32-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/sh
# vim: set sts=4:
# $ mv FOO.ent FOO-orig.ent
# $ debiandoc2dbk-unent <FOO-orig.ent >FOO.ent
#
# This converts from
# <!ENTITY bogus "XXXXXXXXXXXXXX">
# to
# <!ENTITY bogus "@@@[bogus]@@@">
#
# If you have multiline entities, touch them up first.
#
sed -ne 's/^[ \t]*<!ENTITY[ \t]\+\([^ ]\+\)[ \t].*$/<!ENTITY \1 "@@@[\1]@@@">/pi'
|