On Wed, Aug 22, 2007 at 08:41:36PM +0200, Andreas Jellinghaus wrote: > > Can I help make releases more automated so there's only one big > > button to push? > > I don't know if you can hook into "distcheck" but it would be nice > to have an automated test that compares configure version and > src/include/version.h and win32/Make.rules (IIRC the exact file > names are in "ReleaseHowto" wiki page). testing is good enoug, > and failing if they differ.
So, here's a hacky distcheck-hook patch for Makefile.am. I've only tested it standalone so far, not with a full autoreconf + configure + make distcheck run. //Peter
--- Makefile.am.orig 2007-08-22 21:52:06.000000000 +0200 +++ Makefile.am 2007-08-22 21:52:14.000000000 +0200 @@ -18,3 +18,15 @@ AUTOMAKE_OPTIONS = foreign 1.5 ACLOCAL_AMFLAGS = -I aclocal + +distcheck-hook: + @eval $$(sed -e '/^PACKAGE_VERSION=/!d' -e 's,^,configure_,' configure); \ + eval $$(sed -e '/^ \(FILE\|PRODUCT\)VERSION /!d' -e 's,^ ,version_rc_,' -e 's, ,=,' -e 's/,/./g' win32/version.rc); \ + eval $$(sed -e '/^#define VERSION /!d' -e 's,^#define ,winconfig_h_,' -e 's, ,=,' src/include/winconfig.h); \ + err=$$( \ + test "$${configure_PACKAGE_VERSION}.0" = "$${version_rc_FILEVERSION}" || echo "configure PACKAGE_VERSION $${configure_PACKAGE_VERSION} != win32/version.rc FILEVERSION $${version_rc_FILEVERSION}"; \ + test "$${configure_PACKAGE_VERSION}.0" = "$${version_rc_PRODUCTVERSION}" || echo "configure PACKAGE_VERSION $${configure_PACKAGE_VERSION} != win32/version.rc PRODUCTVERSION $${version_rc_PRODUCTVERSION}"; \ + test "$${configure_PACKAGE_VERSION}" = "$${winconfig_h_VERSION}" || echo "configure PACKAGE_VERSION $${configure_PACKAGE_VERSION} != src/include/winconfig.h VERSION $${winconfig_h_VERSION}"; \ + ); \ + echo "$${err}"; \ + test -z "$${err}"
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel