speedo: Append the date to the Windows installer.
authorWerner Koch <wk@gnupg.org>
Wed, 5 Nov 2014 20:40:52 +0000 (21:40 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 5 Nov 2014 20:40:52 +0000 (21:40 +0100)
* build-aux/speedo.mk (BUILD_DATESTR): New.
(dist-source, installer): Use it.

build-aux/speedo.mk
build-aux/speedo/w32/inst.nsi

index b7bcf06..63d508d 100644 (file)
@@ -573,6 +573,7 @@ endif
 
 
 BUILD_ISODATE=$(shell date -u +%Y-%m-%d)
+BUILD_DATESTR=$(subst -,,$(BUILD_ISODATE))
 
 # The next two macros will work only after gnupg has been build.
 ifeq ($(TARGETOS),w32)
@@ -1000,7 +1001,7 @@ ifeq ($(TARGETOS),w32)
 dist-source: all
        for i in 00 01 02 03; do sleep 1;touch PLAY/stamps/stamp-*-${i}-*;done
        (set -e;\
-        tarname="$(INST_NAME)-$(INST_VERSION)_$(BUILD_ISODATE).tar" ;\
+        tarname="$(INST_NAME)-$(INST_VERSION)_$(BUILD_DATESTR).tar" ;\
         [ -f "$$tarname" ] && rm "$$tarname" ;\
          tar -C $(topsrc) -cf "$$tarname" --exclude-backups --exclude-vc \
              --transform='s,^\./,$(INST_NAME)-$(INST_VERSION)/,' \
@@ -1043,11 +1044,12 @@ installer: all w32_insthelpers $(w32src)/inst-options.ini $(bdir)/README.txt
                     -DTOP_SRCDIR=$(topsrc) \
                     -DW32_SRCDIR=$(w32src) \
                     -DBUILD_ISODATE=$(BUILD_ISODATE) \
+                    -DBUILD_DATESTR=$(BUILD_DATESTR) \
                    -DNAME=$(INST_NAME) \
                    -DVERSION=$(INST_VERSION) \
                    -DPROD_VERSION=$(INST_PROD_VERSION) \
                    $(w32src)/inst.nsi
-       @echo "Ready: $(idir)/$(INST_NAME)-$(INST_VERSION)"
+       @echo "Ready: $(idir)/$(INST_NAME)-$(INST_VERSION)_$(BUILD_DATESTR).exe"
 
 endif
 # }}} W32
index 707b058..b43e5ff 100644 (file)
@@ -22,7 +22,8 @@
 #  BUILD_DIR
 #  TOP_SRCDIR
 #  W32_SRCDIR
-#  BUILD_ISODATE
+#  BUILD_ISODATE   - the build date, e.g. "2014-10-31"
+#  BUILD_DATESTR   - ditto w/o '-',  e.g. "20141031"
 #  NAME
 #  VERSION
 #  PROD_VERSION
@@ -94,9 +95,9 @@ SetCompressor lzma
 Name "${PRETTY_PACKAGE}"
 
 # Set the output filename.
-OutFile "${NAME}-${VERSION}.exe"
+OutFile "${NAME}-${VERSION}_${BUILD_DATESTR}.exe"
 
-#Fixme: Do we need a logo
+#Fixme: Do we need a logo?
 #Icon "${TOP_SRCDIR}/doc/logo/gnupg-logo-icon.ico"
 #UninstallIcon "${TOP_SRCDIR}/doc/logo/gnupg-logo-icon.ico"