summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-05-24 22:18:13 -0400
committerAndrew Cady <d@jerkface.net>2023-05-24 22:23:15 -0400
commit9c22edcec3e2991139f23a1ed7f736a768262964 (patch)
tree87c9e1a8114fe9f7ac35d3f636c4cd5257067d81 /Makefile
parentc788f1f71afee331465cd8126f1593621ae163c1 (diff)
use fossil sync to sync
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 17 insertions, 19 deletions
diff --git a/Makefile b/Makefile
index 98b9bed..048112e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,30 +1,28 @@
1 1fossil_database = db
2service_name = fossil-push 2unit_file = ./fossil-sync@.service
3service = $(service_name)@$(shell systemd-escape "$$PWD") 3unit_instance = fossil-sync@$$(systemd-escape "$$(realpath "$(fossil_database)")").service
4 4
5push: start 5push: start
6 6
7install: 7install:
8 systemctl --user link ./$(service_name)@.service ./$(service_name)@.path 8 systemctl --user link $(unit_file)
9 9
10enable-monitor: 10start stop restart status show: | $(fossil_database)
11 systemctl --user start "$(service)".path 11 systemctl --user $@ $(unit_instance)
12 12
13disable-monitor: 13ui: | work/.fslckout
14 systemctl --user stop "$(service)".path 14 cd work && fossil ui
15 15
16start restart status show: 16follow:
17 systemctl --user daemon-reload 17 journalctl --user -u $(unit_instance) -f
18 systemctl --user $@ "$(service)"
19 18
20work:
21 mkdir -p $@
22 19
23work/.fslckout: | work
24 cd work && fossil open ../db
25 20
26ui: | work/.fslckout
27 cd work && fossil ui
28 21
29log: 22
30 journalctl --user -u "$(service)" 23
24work:
25 mkdir -p $@
26
27work/.fslckout: | work $(fossil_database)
28 cd work && fossil open ../$(fossil_database)