X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=09c2fa6fcc88bd13af03ba1d26479dba2af78ac2;hb=e7f2c71f7ef491d949700d74a79c7876edd7eece;hp=40406ce96b7419169e11c989ef0b0273fc6eb006;hpb=366e3fd35562b2729d4c40c0e006742ae8ceaa0a;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 40406ce..09c2fa6 100755 --- a/setup.sh +++ b/setup.sh @@ -1,13 +1,20 @@ +#!/bin/sh + # Setup script for VCS configuration files. . ../lib.sh -# Generate gitconfig. -m4 gitconfig -DHOME=$HOME +if installed git; then + generate m4 gitconfig -DGITIGNORE=`pwd`/gitignore -DOS=`os` + link gitconfig ~/.gitconfig +fi + +if installed tig; then + link tigrc ~/.tigrc +fi -# Link setup. -link gitconfig ~/.gitconfig -link gitignore ~/.gitignore -link hgrc ~/.hgrc -link hgignore ~/.hgignore +if installed hg; then + generate m4 hgrc -DHGIGNORE=`pwd`/hgignore -DOS=`os` + link hgrc ~/.hgrc +fi