summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-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