blob: 4739d80abbc7e5ca4f27cab7361ec7e293c86f6c (
plain) (
tree)
|
|
.POSIX:
install:
mkdir -p -- ~/.claws-mail
test ! -e ~/.claws-mail/clawsrc || test -L ~/.claws-mail/clawsrc
ln -sf -- ~/.dotfiles/claws-mail/clawsrc ~/.claws-mail/clawsrc
if test -L ~/Mail; then \
test "$$(readlink -- ~/Mail)" = .var/mail; \
else \
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
test -e ~/.hidden && grep '^Mail$$' < ~/.hidden > /dev/null || printf '%s\n' "Mail" >> ~/.hidden
uninstall:
+! ../check-installed claws-mail
-unlink -- ~/.claws-mail/clawsrc
-rmdir -- ~/.claws-mail
-unlink -- ~/Mail
-test ! -e ~/.hidden || grep -v '^Mail$$' < ~/.hidden | sponge ~/.hidden
|