summaryrefslogtreecommitdiffstats
path: root/build/subst.inc
diff options
context:
space:
mode:
authorLennart Weller <lhw@ring0.de>2016-04-21 12:27:39 +0000
committerLennart Weller <lhw@ring0.de>2016-04-21 12:27:39 +0000
commitedff5c9db775e6e4318f3ad007df78ecae456190 (patch)
tree3677e5fcbccc776c77dd0451e5be4711068bff46 /build/subst.inc
parentAdd postrm and TODO, update service (diff)
parentImported Upstream version 1.1.0 (diff)
downloadnetdata-edff5c9db775e6e4318f3ad007df78ecae456190.tar.xz
netdata-edff5c9db775e6e4318f3ad007df78ecae456190.zip
Merge tag 'upstream/1.1.0'
Upstream version 1.1.0
Diffstat (limited to 'build/subst.inc')
-rw-r--r--build/subst.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/subst.inc b/build/subst.inc
new file mode 100644
index 000000000..99cac7f4f
--- /dev/null
+++ b/build/subst.inc
@@ -0,0 +1,11 @@
+.in:
+ if sed \
+ -e 's#[@]localstatedir_POST@#$(localstatedir)#g' \
+ -e 's#[@]sbindir_POST@#$(sbindir)#g' \
+ -e 's#[@]sysconfdir_POST@#$(sysconfdir)#g' \
+ $< > $@.tmp; then \
+ mv "$@.tmp" "$@"; \
+ else \
+ rm -f "$@.tmp"; \
+ false; \
+ fi