ghfw-build-extra/github-extra/github-extra.install.in

29 строки
467 B
Plaintext

export LC_ALL=C
post_install () {
for dir in mingw32 mingw64
do
test ! -d /$dir ||
test -f /$dir/etc/gitconfig ||
cat > /$dir/etc/gitconfig <<\GITCONFIG
@@GITCONFIG@@
GITCONFIG
test ! -d /$dir ||
test -f /$dir/etc/gitattributes ||
cat > /$dir/etc/gitattributes <<\GITATTRIBUTES
@@GITATTRIBUTES@@
GITATTRIBUTES
done
test -f /etc/ssh/ssh_config ||
cat > /etc/ssh/ssh_config <<\SSHCONFIG
@@SSHCONFIG@@
SSHCONFIG
}
post_upgrade () {
post_install
}