summaryrefslogtreecommitdiffstats
path: root/build/subst.inc
blob: 9682cf882f6f8380abc74f5a7c5ba7ab1cfd6cf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
.in:
	if sed \
		-e 's#[@]localstatedir_POST@#$(localstatedir)#g' \
		-e 's#[@]sbindir_POST@#$(sbindir)#g' \
		-e 's#[@]sysconfdir_POST@#$(sysconfdir)#g' \
		-e 's#[@]pythondir_POST@#$(pythondir)#g' \
		$< > $@.tmp; then \
		mv "$@.tmp" "$@"; \
	else \
		rm -f "$@.tmp"; \
		false; \
	fi