2009-07-31 Marcus Brinkmann <marcus@g10code.com>
authorMarcus Brinkmann <mb@g10code.com>
Fri, 31 Jul 2009 11:03:26 +0000 (11:03 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Fri, 31 Jul 2009 11:03:26 +0000 (11:03 +0000)
* patches/gnupg2-2.0.12/09-sm-keylist.patch: New file.
* Makefile.am (EXTRA_DIST): Add it.

ChangeLog
Makefile.am
patches/gnupg2-2.0.12/09-sm-keylist.patch [new file with mode: 0755]
src/make-msi.bat
src/make-msi.pl

index 692a2a8..1c52539 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-31  Marcus Brinkmann  <marcus@g10code.com>
+
+       * patches/gnupg2-2.0.12/09-sm-keylist.patch: New file.
+       * Makefile.am (EXTRA_DIST): Add it.
+
 2009-07-30  Werner Koch  <wk@g10code.com>
 
        * patches/gnupg2-2.0.12/08-sm-learn-card.patch: New.
index 6fae140..bba1202 100644 (file)
@@ -50,6 +50,7 @@ EXTRA_DIST = autogen.sh README.SVN \
         patches/gnupg2-2.0.12/06-opgp-sign3072.patch \
         patches/gnupg2-2.0.12/07-gpg-no-detached.patch \
         patches/gnupg2-2.0.12/08-sm-learn-card.patch \
+       patches/gnupg2-2.0.12/09-sm-keylist.patch \
        patches/gpgol-0.9.91/01-gpgme.patch \
         patches/gpa-0.9.0/01-title-prop.patch \
        patches/libetpan-0.57/01-gnutls_compat.patch \
diff --git a/patches/gnupg2-2.0.12/09-sm-keylist.patch b/patches/gnupg2-2.0.12/09-sm-keylist.patch
new file mode 100755 (executable)
index 0000000..deed955
--- /dev/null
@@ -0,0 +1,22 @@
+#! /bin/sh
+patch -p0 -f $* < $0
+exit $?
+
+[sm]
+2009-07-29  Marcus Brinkmann  <marcus@g10code.com>
+
+       * keylist.c (print_capabilities): Print a trailing colon.
+
+Index: keylist.c
+===================================================================
+--- sm/keylist.c       (revision 5080)
++++ sm/keylist.c       (working copy)
+@@ -286,6 +286,8 @@
+     es_putc ('S', fp);
+   if ((use & KSBA_KEYUSAGE_KEY_CERT_SIGN))
+     es_putc ('C', fp);
++
++  es_putc (':', fp);
+ }
index 4e715f2..4e786aa 100644 (file)
@@ -1,7 +1,7 @@
 REM Usage: make-msi.bat [-L{de|en}] [FILE]
 REM Defaults: -Len gpg4win.wix
 REM 
-set WIXPATH=C:\"Program Files"\"Windows Installer XML v3"\bin
+set WIXPATH=%ProgramFiles%\"Windows Installer XML v3"\bin
 
 set LANG=en-us
 IF NOT "%1"=="-Lde" GOTO langde
@@ -23,5 +23,21 @@ IF "%1"=="" GOTO nofile
   set FILE=%1
 :nofile
 
-%WIXPATH%\candle.exe %FILE%
-%WIXPATH%\light.exe -ext WixUIExtension -cultures:%LANG% %FILE%obj
+
+REM We want to catch error, so always clean.
+del msi-custom-license.wixobj
+del msi-custom-ui.wixobj
+del %FILE%.wixobj
+del %FILE%.msi
+
+%WIXPATH%\candle.exe msi-custom-license.wxs
+IF ERRORLEVEL 1 GOTO End
+%WIXPATH%\candle.exe msi-custom-ui.wxs
+IF ERRORLEVEL 1 GOTO End
+%WIXPATH%\candle.exe %FILE%.wxs
+IF ERRORLEVEL 1 GOTO End
+REM Validity tests disabled with -sval due to non-advertised shortcuts.
+%WIXPATH%\light.exe -sval -ext WixUIExtension -ext WixUtilExtension -cultures:%LANG% msi-custom-license.wixobj msi-custom-ui.wixobj %FILE%.wixobj -out %FILE%.msi
+IF ERRORLEVEL 1 GOTO End
+
+:End
index 209d784..7626dc3 100644 (file)
@@ -1,6 +1,6 @@
 #! /usr/bin/perl -w
 # make-msi.pl - MSI Installer for GnuPG 4 Windows.
-# Copyright (C) 2007 g10 Code GmbH
+# Copyright (C) 2007, 2008 g10 Code GmbH
 # 
 # This file is part of Gpg4win.
 # 
@@ -1591,11 +1591,23 @@ dump_all2 ($parser);
 # Removed this, because it is not localized:
 #    <UIRef Id='WixUI_ErrorProgressText' />
 
+# We could do this, but we how to select on language?
+# Probably some conditional can be used.
+#    <CustomAction Id="ShowReadMe" BinaryKey="WixCA" DllEntry="WixShellExec"
+#                  Execute="immediate" Return="check" Impersonate="yes" />
+#    <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Show README" />
+#    <Property Id="WixShellExecTarget" Value="[#f_Kontact_0]" />
+#    <UI>
+#      <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction"
+#               Value="ShowReadMe"
+#               Order="1">WIXUI_EXITDIALOGOPTIONALCHECKBOX</Publish>
+#    </UI>
+
 print <<EOF;
     </Feature>
 
     <WixVariable Id='WixUILicenseRtf' Value='gpl.rtf'/>
-    <UIRef Id='WixUI_Mondo' />
+    <UIRef Id='WixUI_Gpg4Win' />
 
   </Product>
 </Wix>