X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=d13b36fa27cc468efd33ae23ec851816a1b9053c;hb=34380350ab6a9207aa210cf8bdc23618d10b0fff;hp=6d94fb7bcc1716e0b58005909966003700d7cf79;hpb=56ee1004c09bfc6bd5174b09da3401e28b3dca3b;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 6d94fb7..d13b36f 100755 --- a/setup.sh +++ b/setup.sh @@ -1,15 +1,21 @@ +#!/bin/sh + # Setup script for VCS configuration files. . ../lib.sh -# Generate gitconfig. -m4 gitconfig -DHOME=$HOME -DOS=`os` +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 if installed hg; then + generate m4 hgrc -DOS=`os` link hgrc ~/.hgrc link hgignore ~/.hgignore fi