aboutsummaryrefslogtreecommitdiffstats
path: root/claws-mail/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 16:02:27 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 16:02:27 +0200
commit92765544ab8ef4e23e7ce5183e073f567ae7f36f (patch)
tree71b289a69aa5d83e64587697186102c2e7f43565 /claws-mail/Makefile
parentUse asroot instead of sudo and add emacs configs (diff)
downloaddotfiles-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/Makefile24
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