X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=d07008573dc7b7bdf7a1954ea2019e15443decea;hb=fbe8ebfa9472a95b7de0b28b84c7eb83314ddf05;hp=965485cbc6a6d22aadfc32ac7ab073fe5c297fba;hpb=015884081994883875330e9d81218f0c2eb92288;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 965485c..d070085 100755 --- a/setup.sh +++ b/setup.sh @@ -1,15 +1,19 @@ +#!/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 + +if installed tig; then + link tigrc ~/.tigrc +fi + if installed hg; then + generate m4 hgrc -DOS=`os` link hgrc ~/.hgrc link hgignore ~/.hgignore fi