post_install() {
/data/data/com.termux/files/usr/bin/topgrade --gen-completion bash > /data/data/com.termux/files/usr/share/bash-completion/completions/topgrade
/data/data/com.termux/files/usr/bin/topgrade --gen-completion zsh > /data/data/com.termux/files/usr/share/zsh/site-functions/_topgrade
/data/data/com.termux/files/usr/bin/topgrade --gen-completion fish > /data/data/com.termux/files/usr/share/fish/vendor_completions.d/topgrade.fish
/data/data/com.termux/files/usr/bin/topgrade --gen-manpage > /data/data/com.termux/files/usr/share/man/man1/topgrade.1
exit 0
}
pre_remove() {
rm -f /data/data/com.termux/files/usr/share/bash-completion/completions/topgrade
rm -f /data/data/com.termux/files/usr/share/zsh/site-functions/_topgrade
rm -f /data/data/com.termux/files/usr/share/fish/vendor_completions.d/topgrade.fish
rm -f /data/data/com.termux/files/usr/share/man/man1/topgrade.1
exit 0
}
