From 73b053fc1efce2c29c602352dd22f74ce1b330b4 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 18 Feb 2009 18:37:15 +0100 Subject: [PATCH] Use setup.sh instead of Makefile for setup process. It is much easier to extend in the future. --- Makefile | 20 -------------------- setup.sh | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 20 deletions(-) create mode 100755 setup.sh diff --git a/Makefile b/Makefile index b5643e2..f40faad 100644 --- 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 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 -- 2.45.2