summaryrefslogtreecommitdiff
path: root/debian/postinst.xsane
blob: 8ab57e97808728bfaeabbd0fcf9fe834be0bba41 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e
if [ -x /usr/bin/update-menus ] ; then update-menus ; fi
if [ "$1" = "configure" ]; then
    if [ -d /usr/doc -a ! -e /usr/doc/xsane -a -d /usr/share/doc/xsane ]; then
	ln -sf ../share/doc/xsane /usr/doc/xsane
    fi
    if command -v install-docs >/dev/null 2>&1; then
	install-docs -i /usr/share/doc-base/xsane
    fi
fi