X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=a530d1fe260f00595f658987f61fdad76e7c7000;hb=4daf3588f9130eb18d5f4de95f36027c36f1667d;hp=40406ce96b7419169e11c989ef0b0273fc6eb006;hpb=366e3fd35562b2729d4c40c0e006742ae8ceaa0a;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 40406ce..a530d1f 100755 --- a/setup.sh +++ b/setup.sh @@ -1,13 +1,16 @@ +#!/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