diff options
Diffstat (limited to 'build/subst.inc')
-rw-r--r-- | build/subst.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build/subst.inc b/build/subst.inc new file mode 100644 index 0000000..558d33a --- /dev/null +++ b/build/subst.inc @@ -0,0 +1,15 @@ +.in: + if sed \ + -e 's#[@]localstatedir_POST@#$(localstatedir)#g' \ + -e 's#[@]sbindir_POST@#$(sbindir)#g' \ + -e 's#[@]configdir_POST@#$(configdir)#g' \ + -e 's#[@]libconfigdir_POST@#$(libconfigdir)#g' \ + -e 's#[@]cachedir_POST@#$(cachedir)#g' \ + -e 's#[@]registrydir_POST@#$(registrydir)#g' \ + -e 's#[@]varlibdir_POST@#$(varlibdir)#g' \ + $< > $@.tmp; then \ + mv "$@.tmp" "$@"; \ + else \ + rm -f "$@.tmp"; \ + false; \ + fi |