summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-10-15 16:10:27 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-10-21 09:33:42 +0200
commit472d25a303ee85c5dd023e72a24459988ee188a1 (patch)
treeb4aff4106ffc3fc4b36406a6f56d100acca2f689 /src
parentba478d20d4b9595cf3d8252bd25f8e758d2137c7 (diff)
Add Makefile for running periodically via systemd
This is pretty plain right now, but gets the job done Change-Id: I21bea3c065575f4c40ce2a29818a4e49fbaee366 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qtmoduleupdater/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qtmoduleupdater/Makefile b/src/qtmoduleupdater/Makefile
new file mode 100644
index 00000000..c6182712
--- /dev/null
+++ b/src/qtmoduleupdater/Makefile
@@ -0,0 +1,11 @@
+
+service_start:
+ systemd-run --user --on-calendar="*-*-* *:00:00" --same-dir --unit qtmoduleupdater $(MAKE) -d service_iterate
+
+service_stop:
+ systemctl --user stop qtmoduleupdater.timer
+
+service_iterate:
+ git pull --rebase
+ go build
+ ./qtmoduleupdater -autorun