(check-version): Didn't work with separate build tree.

This commit is contained in:
Markus Armbruster 2006-01-22 22:18:25 +00:00
parent fd16db1565
commit 0219f68bd8

View file

@ -297,7 +297,7 @@ dist-info: info html
$(tarball) $(TARNAME)-info-html-$(VERSION) -C info.html $(addsuffix .html, $(info))
check-version:
if [ $(VERSION) != `sed -n '/EMP_VERS_/s/#define EMP_VERS_\([A-Z]*\)[ \t]*//p' <include/version.h | tr '\012' . | sed 's/\.$$//'` ]; \
if [ $(VERSION) != `sed -n '/EMP_VERS_/s/#define EMP_VERS_\([A-Z]*\)[ \t]*//p' <$(srcdir)/include/version.h | tr '\012' . | sed 's/\.$$//'` ]; \
then echo version.h does not match configure.ac >&2; false; \
fi