From 366e3fd35562b2729d4c40c0e006742ae8ceaa0a Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 18 Feb 2009 18:38:03 +0100 Subject: [PATCH] Use setup.sh instead of Makefile for setup process. It is much easier to extend in the future. --- Makefile | 15 --------------- setup.sh | 13 +++++++++++++ 2 files changed, 13 insertions(+), 15 deletions(-) delete mode 100644 Makefile create mode 100755 setup.sh 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 -- 2.45.2