From 92765544ab8ef4e23e7ce5183e073f567ae7f36f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Jun 2021 16:02:27 +0200 Subject: m + add claws-mail and xmonad + add ~/.hidden MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- claws-mail/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 claws-mail/Makefile (limited to 'claws-mail/Makefile') diff --git a/claws-mail/Makefile b/claws-mail/Makefile new file mode 100644 index 0000000..200ef24 --- /dev/null +++ b/claws-mail/Makefile @@ -0,0 +1,24 @@ +.POSIX: + +install: + mkdir -p -- ~/.claws-mail + test ! -d ~/.claws-mail/clawsrc + ln -sf -- ~/.dotfiles/claws-mail/clawsrc ~/.claws-mail/clawsrc + if test -e Mail; then \ + test -d ~/Mail && \ + test ! -e ~/.var/mail && \ + mkdir -p -- ~/.var && \ + mv -- ~/Mail ~/.var/mail; \ + else \ + mkdir -p -- ~/.var/mail; \ + fi + ln -sf -- .var/mail ~/Mail + test -e ~/.hidden && grep '^Mail$' < ~/.hidden || printf '%s\n' "Mail" >> ~/.hidden + +uninstall: + -unlink -- ~/.claws-mail/clawsrc + -rmdir -- ~/.claws-mail + -unlink -- ~/Mail + -test ! -e ~/.hidden || grep -v '^Mail$' < ~/.hidden | sponge ~/.hidden + +.PHONY: install uninstall -- cgit v1.2.3-70-g09d2