From 92765544ab8ef4e23e7ce5183e073f567ae7f36f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Jun 2021 16:02:27 +0200 Subject: m + add claws-mail and xmonad + add ~/.hidden MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- filesystem/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'filesystem/Makefile') 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 -- cgit v1.2.3-70-g09d2