From: Simon Ruderich Date: Wed, 18 Feb 2009 17:38:03 +0000 (+0100) Subject: Use setup.sh instead of Makefile for setup process. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=366e3fd35562b2729d4c40c0e006742ae8ceaa0a;p=config%2Fdotfiles.git Use setup.sh instead of Makefile for setup process. It is much easier to extend in the future. --- diff --git a/Makefile b/Makefile deleted file mode 100644 index 6caf0e5..0000000 --- a/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# Makefile for VCS configuration files. - - -# Generate necessary files and create symbolic links in ~/. -M4=../m4.sh -LINK=../link.sh -.PHONY: setup -setup: - # Generate gitconfig. - $(M4) gitconfig -DHOME=$(HOME) - # Link setup. - $(LINK) gitconfig ~/.gitconfig - $(LINK) gitignore ~/.gitignore - $(LINK) hgrc ~/.hgrc - $(LINK) hgignore ~/.hgignore diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..40406ce --- /dev/null +++ b/setup.sh @@ -0,0 +1,13 @@ +# Setup script for VCS configuration files. + + +. ../lib.sh + +# Generate gitconfig. +m4 gitconfig -DHOME=$HOME + +# Link setup. +link gitconfig ~/.gitconfig +link gitignore ~/.gitignore +link hgrc ~/.hgrc +link hgignore ~/.hgignore