diff options
author | Werner Koch <wk@gnupg.org> | 2021-02-18 10:13:18 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2021-02-18 13:25:33 +0100 |
commit | 919a969354d4021f2e64a948b4c224cd37323713 (patch) | |
tree | e0e4e1c3460d5723bba774cf4a23e10ee6322c22 /Makefile.am | |
parent | dirmngr: Support new gpgNtds parameter in LDAP keyserver URLs. (diff) | |
download | gnupg2-919a969354d4021f2e64a948b4c224cd37323713.tar.xz gnupg2-919a969354d4021f2e64a948b4c224cd37323713.zip |
speedo: Update w32 stuff from 2.2
* build-aux/speedo.mk: Update from 2.2. Add target w32-msi-release.
* build-aux/speedo/w32/inst.nsi: Fix location of doc files.
* build-aux/speedo/w32/wixlib.wxs: Add gpg-card and fix a wrong name.
* Makefile.am (release): Support a WITH_MSI variable.
(wixlibfile): Improve copying to archive.
(release): Use AMTAR instead of TAR.
--
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am index 9daeccc6f..4e80102a2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,9 @@ ## Process this file with automake to produce Makefile.in +# To include the wixlibs for building an MSI installer in a release use +# make release WITH_MSI=1 + # Location of the released tarball archives. This is prefixed by # the variable RELEASE_ARCHIVE in ~/.gnupg-autogen.rc. For example: # RELEASE_ARCHIVE=user@host:archive/tarballs @@ -115,7 +118,7 @@ dist-hook: gen-ChangeLog distcheck-hook: set -e; ( \ - pref="#+macro: gnupg22_" ;\ + pref="#+macro: gnupg24_" ;\ reldate="$$(date -u +%Y-%m-%d)" ;\ echo "$${pref}ver $(PACKAGE_VERSION)" ;\ echo "$${pref}date $${reldate}" ;\ @@ -184,16 +187,19 @@ release: exit 2;\ fi ;\ echo "/* Build started at $$(date -uIseconds) */" ;\ + [ -n "$(WITH_MSI)" ] && echo "/* (with MSI build support) */" ;\ cd $(top_srcdir); \ ./autogen.sh --force; \ cd $(abs_top_builddir); \ rm -rf dist; mkdir dist ; cd dist ; \ $(abs_top_srcdir)/configure --enable-maintainer-mode; \ $(MAKE) distcheck TESTFLAGS=--parallel; \ - $(TAR) xjf $(RELEASE_NAME).tar.bz2 ;\ - $(MAKE) -f $(RELEASE_NAME)/build-aux/speedo.mk w32-release ;\ + $(AMTAR) xjf $(RELEASE_NAME).tar.bz2 ;\ + target=w32-release ;\ + [ -n "$(WITH_MSI)" ] && target=w32-msi-release ;\ + $(MAKE) -f $(RELEASE_NAME)/build-aux/speedo.mk $${target} ;\ echo "/* Build finished at $$(date -uIseconds) */" ;\ - echo "/*" ;\ + echo "/*" ;\ echo " * Please run the final step interactively:" ;\ echo " * make sign-release" ;\ echo " */" ;\ @@ -224,6 +230,7 @@ sign-release: $${release_w32_name}.tar.xz.sig \ $${release_w32_name}.exe.sig \ $${release_w32_name}.exe.swdb" ;\ + wixlibfile="$${release_w32_name}.wixlib";\ $(MAKE) -f $(RELEASE_NAME)/build-aux/speedo.mk w32-sign-installer ;\ echo "/* Signing the source tarball ..." ;\ gpg -sbu $$mysignkey $(RELEASE_NAME).tar.bz2 ;\ @@ -232,14 +239,19 @@ sign-release: echo "/* Signing the W32 installer ..." ;\ gpg -sbu $$mysignkey $${release_w32_name}.exe ;\ cat $(RELEASE_NAME).swdb >swdb.snippet;\ - echo '#+macro: gnupg22_branch STABLE-BRANCH-2-2' >>swdb.snippet;\ + echo '#+macro: gnupg24_branch STABLE-BRANCH-2-4' >>swdb.snippet;\ cat $${release_w32_name}.exe.swdb >>swdb.snippet;\ echo >>swdb.snippet ;\ sha1sum $${files1} >>swdb.snippet ;\ cat "../$(RELEASE_NAME).buildlog" swdb.snippet \ | gzip >$(RELEASE_NAME).buildlog ;\ echo "Release created - copying it to the archive ..." ;\ - scp -p $${files1} $${files2} $$myarchive/ || true;\ + scp -p $${files1} $${files2} $$myarchive/ \ + || echo "/* Error copying files to the archive - ignored */" ;\ + if [ -e $${wixlibfile} ]; then\ + scp -p $${wixlibfile} $$myarchive/ \ + || echo "/* Error copying wixlib to the archive - ignored. */" ;\ + fi ;\ echo '/*' ;\ echo ' * All done; for checksums see dist/swdb.snippet' ;\ echo ' */' ;\ |