MSYS2-packages/git/git.install
Andrew Chadwick 38f70672b9 install scripts: succeed even if info isn't installed
A number of install scripts were testing for install-info to no effect,
then calling it regardless. For minimal installs, this makes pacman fail
on them visibly.

This fix replicates what other MSYS2 packages, e.g. autoconf, do.
Also none of these packages actually depend on GNU info.
2016-06-01 15:53:56 +01:00

23 lines
445 B
Plaintext

infodir=usr/share/info
filelist="git.info.gz gitman.info.gz"
post_install() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist}; do
install-info $infodir/$file $infodir/dir 2> /dev/null
done
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
for file in ${filelist}; do
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
done
}
# vim:set ts=2 sw=2 et: