
- Use a real directory for all packages using a symlink previously: libgtk2.0-bin, libgtk-directfb-2.0-dev, libgtk2.0-dev, libgtk2.0-0-dbg, libgtk-directfb-2.0-0, libgtk2.0-0; add a preinst snippet removing the path on upgrade if it's a symlink and points to the proper directory; add a prerm snippet removing the path on upgrade (for downgrades) if it's a directory (and not a symlink). - Create symlinks for changelog.gz, NEWS.gz, NEWS.pre-1-0.gz, and README.gz in the /usr/share/doc dirs of these packages as well as for gtk2-engines-pixbuf; add a libgtk2.0-common unversionned dependency for all these packages. - Split dh_installdocs and dh_installchangelogs calls on multiple packages and use one call per package as the intent was to install in all the specified packages; also call dh_installdocs and dh_installchangelogs without any extra file for all packages to install copyright and Debian changelog. - Factor the list of dh_installdocs files in DH_INSTALLDOCS_FILES in rules.
13 lines
257 B
Bash
13 lines
257 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# remove /usr/share/doc directory as it was a symlink prior to 2.12.5-2
|
|
pkg=libgtk-directfb-2.0-dev
|
|
if [ "$1" = upgrade ] && [ ! -L /usr/share/doc/$pkg ] && [ -d /usr/share/doc/$pkg ]; then
|
|
rm -rf /usr/share/doc/$pkg
|
|
fi
|
|
|
|
#DEBHELPER#
|
|
|