diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-05-02 14:32:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-05-02 14:32:12 +1200 |
commit | b8edd5536e9f824d75ac44bb57058b656e351535 (patch) | |
tree | db785b79565667dd51b4135d87904accf7b20d05 /Makefile | |
parent | Remove redundant export call for PATH (diff) | |
download | dotfiles-b8edd5536e9f824d75ac44bb57058b656e351535.tar.gz dotfiles-b8edd5536e9f824d75ac44bb57058b656e351535.zip |
Add scatter(1), shoal(1), and shock(1)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -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." + |