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