This is an automated email from the ASF dual-hosted git repository.

freeandnil pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4net.git


The following commit(s) were added to refs/heads/master by this push:
     new 71631474 added check for unzip moved switch  to src from doc to script 
added Set-ExecutionPolicy to prerequisites added Unblock-File added unzip and 
subversion to Linux prerequisites
71631474 is described below

commit 71631474ed652e3be908a3217f6b272cfb1cded8
Author: Jan Friedrich <[email protected]>
AuthorDate: Wed Aug 20 22:48:58 2025 +0200

    added check for unzip
    moved switch  to src from doc to script
    added Set-ExecutionPolicy to prerequisites
    added Unblock-File
    added unzip and subversion to Linux prerequisites
---
 scripts/verify-release.sh                          |  7 +++++++
 .../antora/modules/ROOT/pages/release-review.adoc  | 22 +++++++++++++++++-----
 2 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/scripts/verify-release.sh b/scripts/verify-release.sh
index da6720a1..d1b3b9b8 100644
--- a/scripts/verify-release.sh
+++ b/scripts/verify-release.sh
@@ -1,6 +1,11 @@
 #!/bin/bash
 set -e
 
+if ! which unzip >/dev/null 2>&1; then
+  echo "The 'unzip' utility is required, but was not found in your path" >&2
+  exit 1
+fi
+
 TARGET_DIR="$1";
 if test -z "$TARGET_DIR"; then
   TARGET_DIR="$(pwd)"
@@ -17,3 +22,5 @@ done
 mkdir -p src
 cd src
 unzip -q -o ../*source*.zip
+
+cd src
\ No newline at end of file
diff --git a/src/site/antora/modules/ROOT/pages/release-review.adoc 
b/src/site/antora/modules/ROOT/pages/release-review.adoc
index b9e4c942..a7f8efd1 100644
--- a/src/site/antora/modules/ROOT/pages/release-review.adoc
+++ b/src/site/antora/modules/ROOT/pages/release-review.adoc
@@ -26,7 +26,8 @@ Releases of log4net can be verified with following steps:
 +
 [source,powershell]
 ----
-$releaseVersion = ...VerionToValidate...
+# as administrator
+Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
 winget install -e --id GnuPG.Gpg4win
 winget install -e --id Slik.Subversion  # or any other subversion client
 winget install -e --id Mono.Mono
@@ -49,6 +50,7 @@ choco install dotnet-8.0-sdk
 +
 [source,powershell]
 ----
+$releaseVersion = ...VersionToValidate...
 svn co 
https://dist.apache.org/repos/dist/dev/logging/log4net/${releaseVersion} 
log4net-${releaseVersion}
 pushd log4net-${releaseVersion}
 ----
@@ -57,6 +59,7 @@ pushd log4net-${releaseVersion}
 +
 [source,powershell]
 ----
+Unblock-File ./verify-release.ps1
 & ./verify-release.ps1
 ----
 
@@ -72,6 +75,14 @@ dotnet test ./src/log4net.sln
 [#linux]
 == Linux
 
+. Prerequisites
++
+[source,bash]
+----
+sudo apt install unzip -y
+sudo apt install subversion -y
+----
+
 . Check out the release distribution:
 +
 [source,bash]
@@ -100,7 +111,6 @@ wget --cut-dirs=6 \
 [source,bash]
 ----
 bash ./verify-release.sh
-cd src
 ----
 +
 [%collapsible]
@@ -131,8 +141,10 @@ for sigFile in *.asc; do gpg --verify $sigFile 
${sigFile%.asc}; done
 +
 [source,bash]
 ----
-umask 0022
-unzip -q *source*.zip -d src
+mkdir -p src
+cd src
+unzip -q -o ../*source*.zip
+
 cd src
 ----
 ====
@@ -148,4 +160,4 @@ docker run -it log4net-builder
 # - build src/log4net.sln
 # inside the container run
 dotnet test /logging-log4net/src/log4net.sln
-----
+----
\ No newline at end of file

Reply via email to