+#!/bin/sh
+
# Setup script for VCS configuration files.
. ../lib.sh
# Generate gitconfig.
-m4 gitconfig -DHOME=$HOME
+m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os`
# Link setup.
link gitconfig ~/.gitconfig
-link gitignore ~/.gitignore
-link hgrc ~/.hgrc
-link hgignore ~/.hgignore
+if installed hg; then
+ link hgrc ~/.hgrc
+ link hgignore ~/.hgignore
+fi