git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormail_redacted_for_web 2022-03-21 12:07:33 +0100
committermail_redacted_for_web 2022-03-21 12:07:33 +0100
commit11abbcbade2007fe352716161ff9d09843b9503c (patch)
tree06ae9f1e7a04bb4eccaf8fe2bf5b3bf8a2c3d35b /Makefile
parente7b2260316caf53f3912fabf71ad7b810c24703c (diff)
downloaddotfiles-11abbcbade2007fe352716161ff9d09843b9503c.tar.bz2
check for DFDISTRIB, less output on rm
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0a35cc0..787e2f4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
VERSION = 3.82
-all: tempdirs tarball removedirs distrib removetar
+all: complete
+
+# checkenv is redundant here but prevents execution of anything before failing
+complete: checkenv tempdirs tarball removedirs distrib removetar
tarball:
rsync -avu bin .bash .bash_profile .bashrc .flake8 .gitconfig .perlcriticrc .profile .pylintrc .tmux.conf .tmux.conf.local tmux-gpakosz tmux-yank --exclude=.git --exclude=.gitattributes --exclude=.github --exclude=.gitignore --exclude='LICENSE*' --exclude='README*' distribute/tar/
tar -C distribute/tar -cvJf dotfiles.tar.xz .
- rm -vrf distribute/tar
+ rm -rf distribute/tar
tempdirs:
@mkdir -pv distribute/tar
@@ -13,8 +16,11 @@ tempdirs:
removedirs:
rm -rf distribute/tar
-distrib:
+distrib: checkenv
ansible-playbook distrib.yml
+checkenv:
+ @if [ -z "$$DFDISTRIB" ];then printf "DFDISTRIB not set, cannot determine target.\\n" >&2;exit 101;fi
+
removetar:
@rm -vf dotfiles.tar.xz
| Currently, ```ssh-add -l``` displays the fingerprint the same way ```ssh-keygen -Esha256 -lf``` does. Simple comparison, done. * display current IFSH. P. 2022-07-061-0/+1 | * Do not execute any remote action on localhostH. P. 2022-07-051-24/+25 | * Do not execute remote removal on localhostH. P. 2022-07-051-0/+8 | * con: locH. P. 2022-06-301-0/+1 | * removing delegation remnantsH. P. 2022-06-301-3/+0 | * We do not need facts, let's not waste time gathering themH. P. 2022-06-301-1/+2 | * Make sure DFDISTRIB is not emptyH. P. 2022-06-301-0/+7 | * separation into plays-per-host(s)H. P. 2022-06-291-3/+12 | * update tmux-gpakoszH. P. 2022-06-291-0/+0 | * Source is now an absolute path :-)H. P. 2022-06-281-2/+2 | * BUGFIX: only create the tarball once for all hostsH. P. 2022-06-281-0/+1 | * Including *.local files as non-presence is no errorH. P. 2022-06-281-0/+4 | * Move tarball creation inside ansible playbook [2]H. P. 2022-06-281-26/+0 | * Added local tarball removal after successful remote executionsH. P. 2022-06-281-0/+11 | * Reincluded remote tarball removalH. P. 2022-06-281-1/+0 | * Move tarball creation inside ansible playbookH. P. 2022-06-281-0/+47 | * replaced cloudflare (wtf!!!) with quad9H. P. 2022-06-241-1/+1 | * +password-store alias for multiples storesH. P. 2022-06-241-0/+3 | * +new long format for git logv0.9.2H. P. 2022-05-021-0/+3 | * + coloured diff as defaultH. P. 2022-05-021-0/+1 | * typoH. P. 2022-04-271-1/+1 | * +voicemsg aliasH. P. 2022-04-261-0/+5 | * force yaml to noexpandtab eventuallyv0.9.1