diff options
author | Werner Koch <[email protected]> | 2012-01-19 15:04:19 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-01-19 15:04:19 +0000 |
commit | 574b087e84f5652cf9d8eba8aa16b8d6bb988035 (patch) | |
tree | 2f7fbff6d16d515a789fa3df5bfb7c959d7721f5 /configure.ac | |
parent | Adjust configure.ac for modern autoconf. (diff) | |
download | gpgme-574b087e84f5652cf9d8eba8aa16b8d6bb988035.tar.gz gpgme-574b087e84f5652cf9d8eba8aa16b8d6bb988035.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
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) |