summarylogtreecommitdiffstats
path: root/weechat-matrix.install
blob: e2dd8e6be34eeabbe5b6d96daeb0c36ffefb143c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
    echo -e "\n#############################################################################################\n"
    echo -e " To load this script, execute the following command in WeeChat:\n"
    echo -e " /script load weechat-matrix.py"
    echo -e "\n To load it automatically during WeeChat startup, use:\n"
    echo -e " mkdir -p ~/.local/share/weechat/python/autoload"
    echo -e " ln -s /usr/share/weechat/python/weechat-matrix.py -t ~/.local/share/weechat/python/autoload"
    echo -e "\n#############################################################################################\n"
}

post_upgrade() {
    if [ "$(vercmp "$2" 0.2.0-2)" -lt 0 ]
    then
        post_install
    fi
}