]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
setup.sh: Remove some unnecessary comments.
[config/dotfiles.git] / setup.sh
index 40406ce96b7419169e11c989ef0b0273fc6eb006..fab36587ab10df2d6c53d4bbb5f0db801c0d5606 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -1,13 +1,14 @@
+#!/bin/sh
+
 # Setup script for VCS configuration files.
 
 
 . ../lib.sh
 
-# Generate gitconfig.
-m4 gitconfig -DHOME=$HOME
-
-# Link setup.
+generate m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os`
 link gitconfig ~/.gitconfig
-link gitignore ~/.gitignore
-link hgrc ~/.hgrc
-link hgignore ~/.hgignore
+
+if installed hg; then
+    link hgrc ~/.hgrc
+    link hgignore ~/.hgignore
+fi