mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
speedo: Append the date to the Windows installer.
* build-aux/speedo.mk (BUILD_DATESTR): New. (dist-source, installer): Use it.
This commit is contained in:
parent
d280a52757
commit
8ec0b384a8
@ -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
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user