]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Use setup.sh instead of Makefile for setup process.
authorSimon Ruderich <simon@ruderich.org>
Wed, 18 Feb 2009 17:38:03 +0000 (18:38 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 18 Feb 2009 17:38:03 +0000 (18:38 +0100)
It is much easier to extend in the future.

Makefile [deleted file]
setup.sh [new file with mode: 0755]

diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
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 (executable)
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