]> 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:37:15 +0000 (18:37 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 18 Feb 2009 17:37:15 +0000 (18:37 +0100)
It is much easier to extend in the future.

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

index b5643e27d965617413033b62b3ad2976432d0122..f40faad205da27179dfd44acedd7d3180860daed 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,25 +1,5 @@
 # Makefile for shell configuration files.
 
 
-# Generate necessary files and create symbolic links in ~/.
-LINK=../link.sh
-.PHONY: setup
-setup:
-       # Generate ~/.less with lesskey.
-       lesskey lesskey
-       # Link setup for shells.
-       $(LINK) shell ~/.shell
-       $(LINK) bash ~/.bash
-       $(LINK) bash/rc ~/.bashrc
-       $(LINK) bash/profile ~/.bash_profile
-       $(LINK) zsh ~/.zsh
-       $(LINK) zsh/env ~/.zshenv
-       $(LINK) zsh/rc ~/.zshrc
-       $(LINK) zsh/logout ~/.zlogout
-       # Link setup for additional files.
-       $(LINK) colordiffrc ~/.colordiffrc
-       $(LINK) inputrc ~/.inputrc
-       $(LINK) screenrc ~/.screenrc
-
 test:
        cd tests; zsh run.zsh
diff --git a/setup.sh b/setup.sh
new file mode 100755 (executable)
index 0000000..d776422
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,22 @@
+# Setup script for shell configuration files.
+
+
+. ../lib.sh
+
+# Generate ~/.less with lesskey.
+lesskey lesskey
+
+# Link setup for shells.
+link shell ~/.shell
+link bash ~/.bash
+link bash/rc ~/.bashrc
+link bash/profile ~/.bash_profile
+link zsh ~/.zsh
+link zsh/env ~/.zshenv
+link zsh/rc ~/.zshrc
+link zsh/logout ~/.zlogout
+
+# Link setup for additional files.
+link colordiffrc ~/.colordiffrc
+link inputrc ~/.inputrc
+link screenrc ~/.screenrc