-#!/bin/sh
-set -o errexit
+#!/bin/bash
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
+hvbuild_post()
+{
+ install -v -m644 ${SCRDIR}/misc/git-completion.bash \
+ /etc/bash_completion.d
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
+ local GIT_MANPAGES="git-manpages-$(get_pkg_ver ${PACKAGE})"
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
+ decompress_package ${GIT_MANPAGES} /usr/share/man
-# Applying patches (if any)
-apply_patches ${PACKAGE}
+ cat > /etc/gitconfig << "EOF"
+[color]
+ branch = auto
+ diff = auto
+ interactive = auto
+ status = auto
-cd ${LFS_TMP}/${PACKAGE}
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
+[core]
+ editor = emacs
-decompress_package ${GIT_MANPAGES} /usr/share/man
+[push]
+ # Pushes will go to the same place that pulls come from:
+ default = tracking
-exit $?
+[diff]
+ # Enable rename and copies detection
+ renames = copy
+
+EOF
+}