From f2dfde23f8157da1532a2b2e236af529fed47713 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 11 Apr 2024 16:21:15 -0500 Subject: replace janky deploy script with stow and make re-orgs all the console oriented dotfiles to be stowable makefile to deploy everything move from vimplug to native vim packages cleanup script for blowing away old symlinks --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bbdaf73 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +REPO_CHANGES := $(shell git status --porcelain | wc -l) + +.PHONY: .initialize +.initialize: +ifneq ($(REPO_CHANGES),0) + $(error cannot run with a dirty repo. stash or commit changes.) +endif + git submodule update --init --recursive + +.PHONY: .local +.local: + mkdir -p stow/duplicity/.config/duplicity + cp --update=none local/duplicity-config stow/duplicity/.config/duplicity/config + cp --update=none local/duplicity-excludes stow/duplicity/.config/duplicity/excludes + cp --update=none local/gitconfig-local stow/git/.config/git/config-local + cp --update=none local/local.zsh stow/zsh/.config/zsh/00-local.zsh + +.PHONY: console +console: .initialize .local + stow --adopt --dir=stow --target=${HOME} console-utils + stow --adopt --dir=stow --target=${HOME} dircolors + stow --adopt --dir=stow --target=${HOME} git + stow --adopt --dir=stow --target=${HOME} vim + stow --adopt --dir=stow --target=${HOME} zsh + stow --adopt --dir=stow --target=${HOME} duplicity + +restore: + git restore . -- cgit v1.2.3