lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [lucenenet] 02/02: build/Release.targets: Added target for appending signature to KEYS file based on Apache ID
Date Sat, 25 Apr 2020 17:04:40 GMT
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 8cf15f7fd0bb7b22bb2e865895998583d049ab92
Author: Shad Storhaug <shad@shadstorhaug.com>
AuthorDate: Sat Apr 25 23:36:22 2020 +0700

    build/Release.targets: Added target for appending signature to KEYS file based on Apache
ID
---
 build/Release.targets | 27 +++++++++++++++++++++++----
 1 file changed, 23 insertions(+), 4 deletions(-)

diff --git a/build/Release.targets b/build/Release.targets
index c8a5f2c..d93ddcf 100644
--- a/build/Release.targets
+++ b/build/Release.targets
@@ -139,8 +139,8 @@
     <Error Condition =" '%(_RequiredProperties.Value)'=='' "
           Text=" Missing required property [%(_RequiredProperties.Identity)]" />
     
-    <Error Condition ="!Exists('$(SvnReleaseDirectory)\KEYS')"
-          Text=" Keys file '$(SvnReleaseDirectory)\KEYS' doesn't exist in lucenenet/release"
/>
+    <Error Condition ="!Exists('$(SvnReleaseKeysFile)')"
+          Text=" Keys file '$(SvnReleaseKeysFile)' doesn't exist in lucenenet/release" />
     
     <!-- Copy KEYS file from release to dev -->
     <Message Importance="high" Text="Source: $(SvnReleaseKeysFile), Destination: $(SvnDevDirectory)"/>
@@ -166,8 +166,8 @@
     
     <Error Condition ="!Exists('$(SvnDevDirectory)\$(PackageVersion)')"
           Text=" Directory '$(SvnDevDirectory)\$(PackageVersion)' doesn't exist in lucenenet/dev"
/>
-    <Error Condition ="!Exists('$(SvnDevDirectory)\KEYS')"
-          Text=" Keys file '$(SvnDevDirectory)\KEYS' doesn't exist in lucenenet/dev" />
+    <Error Condition ="!Exists('$(SvnDevKeysFile)')"
+          Text=" Keys file '$(SvnDevKeysFile)' doesn't exist in lucenenet/dev" />
 
     <Message Importance="high" Text="Releasing $(PackageVersion)..."/>
     
@@ -194,4 +194,23 @@
     <Message Importance="high" Text="Release of $(PackageVersion) Complete"/>
   </Target>
   
+  <Target Name="AppendSignature" Label="Uses GnuPG to append a user's signature to the
KEYS file in release/lucenenet" DependsOnTargets="CheckoutRelease" Condition="'$(AssemblyName)'
== 'Lucene.Net' ">
+    <ItemGroup>
+      <_RequiredProperties Include="ApacheID">
+        <Value>$(ApacheID)</Value>
+      </_RequiredProperties>
+    </ItemGroup>
+
+    <Error Condition =" '%(_RequiredProperties.Value)'=='' "
+          Text=" Missing required property [%(_RequiredProperties.Identity)]" />
+  
+    <Error Condition ="!Exists('$(SvnReleaseKeysFile)')"
+          Text=" Keys file '$(SvnReleaseKeysFile)' doesn't exist in lucenenet/release" />
+    
+    <!-- Add signature to release/lucenenet/KEYS file -->
+    <Exec WorkingDirectory="$(SvnReleaseDirectory)" Command="(gpg --list-sigs $(ApacheID)
&amp;&amp; gpg --armor --export $(ApacheID)) >> KEYS" />
+    <Exec WorkingDirectory="$(SvnReleaseDirectory)" Command="svn commit -m &quot;Added
Key for $(ApacheID)&quot;" />
+  
+  </Target>
+  
 </Project>
\ No newline at end of file


Mime
View raw message