summarylogtreecommitdiffstats
path: root/dispass.install
blob: 3858f462bb786ebec65a0d3939311fd89ef55ada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
INFO_DIR=usr/share/info

update_icons() {
    if [ -x usr/bin/xdg-icon-resource ]; then
        xdg-icon-resource forceupdate --theme hicolor > /dev/null 2>&1
    fi
}

post_install() {
    update_icons

    if [ -x usr/bin/install-info ]; then
        install-info ${INFO_DIR}/dispass.info.gz ${INFO_DIR}/dir \
                     2> /dev/null
    fi
}

post_upgrade() {
    post_install "$1"
}

post_remove() {
    update_icons

    if [ -x usr/bin/install-info ]; then
        install-info --delete ${INFO_DIR}/dispass.info.gz \
                     ${INFO_DIR}/dir 2> /dev/null
    fi
}