From 574b087e84f5652cf9d8eba8aa16b8d6bb988035 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 19 Jan 2012 16:04:19 +0100 Subject: For W32 use a build number instead of abbreviated commit id. We would need to use a shortened commit id so that it fits into an 16 bit Windows variable. Further it is a random number and not something increasing. Thus a build number made up from the day of the year and the hour is much more useful to describe a build number for a specific revision. * configure.ac [W32]: Replace BUILD_REVISION by BUILD_NUMBER. * src/versioninfo.rc.in: Ditto. --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5414963c..ebe30e92 100644 --- a/configure.ac +++ b/configure.ac @@ -856,14 +856,19 @@ AM_CONDITIONAL(HAVE_UISERVER, test "$uiserver" != "no") # Generate values for the DLL version info + +dnl Windows uses an internal build number. We use the last day of the +dnl year concatenated with the hour for it. WARNING: You should not +dnl do a build with the same version number in another year. if test "$have_w32_system" = yes; then BUILD_TIMESTAMP=`date --iso-8601=minutes` + BUILD_NUMBER="$(date -u '+%j%H' | sed 's/^0*\(.*\)/\1/')" changequote(,)dnl BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'` changequote([,])dnl - BUILD_FILEVERSION="${BUILD_FILEVERSION}${BUILD_REVISION}" + BUILD_FILEVERSION="${BUILD_FILEVERSION}${BUILD_NUMBER}" fi -AC_SUBST(BUILD_REVISION) +AC_SUBST(BUILD_NUMBER) AC_SUBST(BUILD_TIMESTAMP) AC_SUBST(BUILD_FILEVERSION) -- cgit v1.2.3