X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=setup.sh;h=ff01b10bb234e5a2ece104847549010add812f91;hb=c3582889fd9132a91a74d483dd165ed65bad47c5;hp=2747b9235d4533990ea361ae4a4c8c5d08e99ac2;hpb=e4c16ff97afe69adec52cbbf4b4d66455d4a3371;p=config%2Fdotfiles.git diff --git a/setup.sh b/setup.sh index 2747b92..ff01b10 100755 --- a/setup.sh +++ b/setup.sh @@ -18,20 +18,20 @@ # along with this program. If not, see . +set -e + . ../lib.sh + if installed git; then + generate gitconfig .in simple_cpp \ + PWD -- "`pwd`" + # Older Git versions don't support --patience. - PATIENCE= - if git diff --patience >/dev/null 2>&1; then - PATIENCE=--patience + if ! git diff --patience >/dev/null 2>&1; then + sed_i 's/--patience//' gitconfig fi - generate m4 gitconfig \ - -DGITIGNORE=`pwd`/gitignore \ - -DPATIENCE="$PATIENCE" \ - -DOS=`os` \ - -DTIG="`pwd`/tig.pl" link gitconfig ~/.gitconfig fi @@ -40,9 +40,6 @@ if installed tig; then fi if installed hg; then - generate m4 hgrc \ - -DHGIGNORE=`pwd`/hgignore \ - -DOS=`os` link hgrc ~/.hgrc fi