dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 03272542e7f733ba5b88377d69df670b21f012d9
parent 57352be10efceb416196b9ca4a24ea57a7978045
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 14 Mar 2017 01:33:54 +0000

Makefile: Add `git-annex`

Diffstat:
Makefile | 23++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -2,11 +2,12 @@ CONFIG_DIR = $(HOME)/.config NPM_PACKAGES_DIR = $(HOME)/.npm-packages +CBINS= $(HOME)/.cbins nothing: @echo "Give me something to make." -all: config dothome npm +all: config dothome npm git-annex config: @mkdir -p $(CONFIG_DIR) @@ -29,4 +30,24 @@ npm: @mkdir -p $(NPM_PACKAGES_DIR) @echo "prefix = $(NPM_PACKAGES_DIR)" > $(HOME)/.npmrc + +git-annex: + mkdir -p $(CBINS) && \ + cd $(CBINS) && \ + rm -rf git-annex-* && \ + wget 'https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz' && \ + wget 'https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz.info' && \ + wget 'https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz.info.sig' && \ + wget 'https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz.sig' && \ + wget 'https://downloads.kitenet.net/git-annex/gpg-pubkey.asc' -O git-annex-pub.key && \ + gpg --import git-annex-pub.key && \ + gpg --verify git-annex-standalone-amd64.tar.gz.sig && \ + gpg --verify git-annex-standalone-amd64.tar.gz.info.sig && \ + gpg --verify git-annex-standalone-amd64.tar.gz.sig && \ + tar xf git-annex-standalone-amd64.tar.gz && \ + ln -sf $(CBINS)/git-annex.linux/git-annex $(HOME)/.bin/git-annex + +.PHONY: git-annex git-annex-make + + .PHONY: dothome npm config nothing all