r5435 - trunk/varnish-cache

tfheen at varnish-cache.org tfheen at varnish-cache.org
Wed Oct 20 09:15:46 CEST 2010


Author: tfheen
Date: 2010-10-20 09:15:45 +0200 (Wed, 20 Oct 2010)
New Revision: 5435

Modified:
   trunk/varnish-cache/Makefile.am
Log:
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.



Modified: trunk/varnish-cache/Makefile.am
===================================================================
--- trunk/varnish-cache/Makefile.am	2010-10-19 15:01:04 UTC (rev 5434)
+++ trunk/varnish-cache/Makefile.am	2010-10-20 07:15:45 UTC (rev 5435)
@@ -11,3 +11,11 @@
 
 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
+




More information about the varnish-commit mailing list