diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-25 16:02:27 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-25 16:02:27 +0200 |
commit | 92765544ab8ef4e23e7ce5183e073f567ae7f36f (patch) | |
tree | 71b289a69aa5d83e64587697186102c2e7f43565 /claws-mail/Makefile | |
parent | Use asroot instead of sudo and add emacs configs (diff) | |
download | dotfiles-92765544ab8ef4e23e7ce5183e073f567ae7f36f.tar.gz dotfiles-92765544ab8ef4e23e7ce5183e073f567ae7f36f.tar.bz2 dotfiles-92765544ab8ef4e23e7ce5183e073f567ae7f36f.tar.xz |
m + add claws-mail and xmonad + add ~/.hidden
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | claws-mail/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
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 |