summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2016-04-02 19:58:05 +0300
committerAlon Bar-Lev <alon.barlev@gmail.com>2016-04-02 23:07:47 +0300
commit1e40bc2dca82c794b1ef9473fa0d027f94014cb7 (patch)
treeb5c9302d1c86227ede9e9579ebdcb062e4250e00 /build
parent4c85e7362dc3f4ec875e711fbf255f186c9085ed (diff)
build: generate proper systemd service file
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Diffstat (limited to 'build')
-rw-r--r--build/subst.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/subst.inc b/build/subst.inc
new file mode 100644
index 0000000000..18743abb72
--- /dev/null
+++ b/build/subst.inc
@@ -0,0 +1,10 @@
+.in:
+ if sed \
+ -e 's#[@]localstatedir_POST@#$(localstatedir)#g' \
+ -e 's#[@]sbindir_POST@#$(sbindir)#g' \
+ $< > $@.tmp; then \
+ mv "$@.tmp" "$@"; \
+ else \
+ rm -f "$@.tmp"; \
+ false; \
+ fi