# Setup script for VCS configuration files.
-# Copyright (C) 2011-2012 Simon Ruderich
+# Copyright (C) 2011-2013 Simon Ruderich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+set -e
+
. ../lib.sh
+
if installed git; then
# Older Git versions don't support --patience.
PATIENCE=
PATIENCE=--patience
fi
- generate m4 gitconfig \
- -DGITIGNORE=`pwd`/gitignore \
+ generate gitconfig .m4 m4 \
-DPATIENCE="$PATIENCE" \
- -DOS=`os`
+ -DOS=`os` \
+ -DPWD="`pwd`"
link gitconfig ~/.gitconfig
fi
fi
if installed hg; then
- generate m4 hgrc \
- -DHGIGNORE=`pwd`/hgignore \
- -DOS=`os`
link hgrc ~/.hgrc
fi