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 /filesystem | |
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 'filesystem')
-rw-r--r-- | filesystem/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/filesystem/Makefile b/filesystem/Makefile index c46eea2..c6b7fde 100644 --- a/filesystem/Makefile +++ b/filesystem/Makefile @@ -1,5 +1,18 @@ .POSIX: +HIDE =\ + Templates\ + Desktop\ + Public\ + Documents\ + Downloads\ + Music\ + Pictures\ + Videos\ + public_html\ + password.gpg\ + mnt + install: mkdir -p -- ~/.config mkdir -p -- ~/.var/cache/.thumbnails @@ -53,6 +66,12 @@ install: mkdir -p -- ~/.usr/share/man mkdir -p -- ~/.usr/src ln -sf -- ~/.dotfiles/filesystem/user-dirs.dirs ~/.config/ + set -e && for f in $(HIDE); do \ + test -e ~/.hidden && grep '^'"$$f"'$' < ~/.hidden || printf '%s\n' "$$f" >> ~/.hidden; \ + done + if test "$$(hostname | tr '[[:upper:]]' '[[:lower:]]')" = zenith; then \ + test -e ~/.hidden && grep '^cryptokey.gpg$' < ~/.hidden || printf '%s\n' "cryptokey.gpg" >> ~/.hidden; \ + fi uninstall: -unlink -- ../.cache ~/.config/.cache @@ -86,5 +105,8 @@ uninstall: -rmdir -- ~/.usr/share -rmdir -- ~/.usr/src -rmdir -- ~/.usr + -for f in $(HIDE) cryptokey.gpg; do \ + test ! -e ~/.hidden || grep -v '^'"$$f"'$' < ~/.hidden | sponge ~/.hidden; \ + done .PHONY: install uninstall |