Avoided warning message about non-existent maint/version.sh file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2011-07-26 15:55:02 +03:00
parent 6ac6a55301
commit 034633a3c9

View File

@ -23,7 +23,10 @@ update-version:
@if test -x $(top_srcdir)/maint/version.sh; then \ @if test -x $(top_srcdir)/maint/version.sh; then \
$(top_srcdir)/maint/version.sh "$(top_srcdir)" 2>&1 >/dev/null; \ $(top_srcdir)/maint/version.sh "$(top_srcdir)" 2>&1 >/dev/null; \
else \ else \
if test ! -e $(top_srcdir)/version.h; then \
echo "File not found: $(top_srcdir)/maint/version.sh"; \ echo "File not found: $(top_srcdir)/maint/version.sh"; \
exit 1; \
fi; \
fi fi
$(top_srcdir)/version.h: update-version $(top_srcdir)/version.h: update-version