Commit 2c9af5a1 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r5435: Add distcheck hook

Add a distcheck hook that checks the version field of the RH spec
file, ensuring that we don't accidentially release a version without
at least making sure that number is correct.



git-svn-id: http://www.varnish-cache.org/svn/branches/2.1@5436 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c259875f
......@@ -11,3 +11,11 @@ EXTRA_DIST = LICENSE autogen.sh varnishapi.pc.in
install-data-local:
$(install_sh) -d -m 0755 $(DESTDIR)$(localstatedir)/varnish
distcheck-hook:
if ! grep "^Version: @PACKAGE_VERSION@$$" $(top_distdir)/redhat/varnish.spec && \
[ "@PACKAGE_VERSION@" != "trunk" ]; then \
echo "redhat/varnish.spec does not have a version number matching the package" ; \
exit 1 ; \
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment