aboutsummaryrefslogtreecommitdiffstats
path: root/claws-mail/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-25 19:57:30 +0200
committerMattias Andrée <maandree@kth.se>2021-06-25 19:57:30 +0200
commit13000ece6955fc071548b83d87857c92345ff8f6 (patch)
tree37da1e9d1b9aa616935b5b165e4df97ed5412613 /claws-mail/Makefile
parentLink ~/.ssh to ~/.dotfiles/.secrets/ssh (diff)
downloaddotfiles-13000ece6955fc071548b83d87857c92345ff8f6.tar.gz
dotfiles-13000ece6955fc071548b83d87857c92345ff8f6.tar.bz2
dotfiles-13000ece6955fc071548b83d87857c92345ff8f6.tar.xz
Do create link .var/mail/mail -> .var/mail
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--claws-mail/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/claws-mail/Makefile b/claws-mail/Makefile
index 8a3b141..45df08c 100644
--- a/claws-mail/Makefile
+++ b/claws-mail/Makefile
@@ -5,15 +5,19 @@ 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; \
+ if test -L ~/Mail; then \
+ test "$$(readlink -- ~/Mail)" = .var/mail; \
else \
- mkdir -p -- ~/.var/mail; \
+ 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; \
fi
- ln -sf -- .var/mail ~/Mail
test -e ~/.hidden && grep '^Mail$$' < ~/.hidden || printf '%s\n' "Mail" >> ~/.hidden
uninstall: