aboutsummaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-06-26 08:46:39 +0200
committerMattias Andrée <maandree@kth.se>2021-06-26 08:46:39 +0200
commitcc17f5e798b016d98e10cc998193e9b20ddb777e (patch)
tree52af18be86921f2d8a7890cb5a80e3a6049c4400 /base
parentm (diff)
downloaddotfiles-cc17f5e798b016d98e10cc998193e9b20ddb777e.tar.gz
dotfiles-cc17f5e798b016d98e10cc998193e9b20ddb777e.tar.bz2
dotfiles-cc17f5e798b016d98e10cc998193e9b20ddb777e.tar.xz
Add location
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'base')
-rw-r--r--base/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/base/Makefile b/base/Makefile
index 6beaf4c..deeaa8c 100644
--- a/base/Makefile
+++ b/base/Makefile
@@ -17,10 +17,25 @@ install:
ln -sf -- ~/.dotfiles/base/faces/$(FACE) ~/.config/face
ln -sf -- .face ~/.face.icon
ln -sf -- .config/face ~/.face
+ if test -L ~/.config/locations; then \
+ test "$$(readlink -- ~/.config/locations)" = ~/.dotfiles/.secrets/locations; \
+ else \
+ test ! -e ~/.config/locations && \
+ ln -s -- ~/.dotfiles/.secrets/locations ~/.config/locations; \
+ fi
+ test ! -d ~/.config/geolocation
+ test ! -d ~/.config/metar
+ test -L ~/.config/locations/current || test ! -e ~/.config/locations/current
+ test -L ~/.config/locations/current || ln -sf default ~/.config/locations/current
+ ln -sf locations/current/geolocation ~/.config/geolocation
+ ln -sf locations/current/metar ~/.config/metar
uninstall:
-unlink -- ~/.config/profile
-unlink -- ~/.config/user-dirs.locale
-unlink -- ~/.profile
+ -unlink -- ~/.config/locations
+ -unlink -- ~/.config/geolocation
+ -unlink -- ~/.config/metar
.PHONY: install uninstall