From b8edd5536e9f824d75ac44bb57058b656e351535 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 2 May 2014 14:32:12 +1200 Subject: Add scatter(1), shoal(1), and shock(1) --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1c691bbc..d257d2c1 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,12 @@ usage : @echo "If you're happy with what it'll do, then run make install." install : install-bash \ + install-bin \ install-curl \ install-git \ install-gnupg \ install-readline \ + install-man \ install-sh \ install-terminfo \ install-vim @@ -23,6 +25,20 @@ install-bash : test-bash ln -s $(PWD)/bash/bash_logout $(HOME)/.bash_logout ln -s $(PWD)/bash/bash_completion $(HOME)/.config/bash_completion +install-bin : test-bin + mkdir -p $(HOME)/.local/bin + for bin in $(PWD)/bin/* ; do \ + rm -f $(HOME)/.local/bin/"$${bin##*/}" ; \ + ln -s "$$bin" $(HOME)/.local/bin/"$${bin##*/}" ; \ + done + +install-man : + for man in $(PWD)/man/* ; do \ + mkdir -p $(HOME)/.local/share/man/man"$${man##*.}" ; \ + rm -f $(HOME)/.local/share/man/man"$${man##*.}"/"$${man##*/}" ; \ + ln -s "$$man" $(HOME)/.local/share/man/man"$${man##*.}"/"$${man##*/}" ; \ + done + install-curl : rm -f $(HOME)/.curlrc ln -s $(PWD)/curl/curlrc $(HOME)/.curlrc @@ -141,3 +157,13 @@ test-bash : done @echo "All bash(1) scripts parsed successfully." +test-bin : + @for bin in $(PWD)/bin/* ; do \ + if sed 1q "$$bin"" | grep -q bash && ! bash -n "$$bin" ; then \ + exit 1 ; \ + elsif sed 1q "$$bin"" | grep -q sh && ! sh -n "$$sh" ; then \ + exit 1 ; \ + fi ; \ + done + @echo "All shell scripts in /bin/ parsed successfully." + -- cgit v1.2.3