aboutsummaryrefslogtreecommitdiffstats
path: root/filesystem
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 /filesystem
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 'filesystem')
-rw-r--r--filesystem/Makefile22
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