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

jacopoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ofbiz-tools.git

commit ee0f1529f0d731a58a3a5f30de2aef3eb9d5cca9
Author: Jacopo Cappellato <[email protected]>
AuthorDate: Thu Oct 22 15:17:00 2026 +0200

    Fix the release archive contents
    
    Fixed two issues in the generated archive:
    - On macOS, BSD sed treated "-e" as the backup suffix in "sed -i -e",
      which left a stray README.adoc-e in the zip; replaced it with
      "perl -pi -e", which works on both macOS and Linux.
    - The zip glob (apache-ofbiz-<version>/*) skipped hidden files at the
      top level; the whole directory is now archived.
    
    Since hidden files are now included, these were added to the list of
    files removed from the source release: .asf.yaml (framework and
    plugins), .gitattributes, .hgignore and .devcontainer/. The rm
    commands now use -f because not every release branch has all of
    these files.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 process-ofbiz-release.sh | 26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

diff --git a/process-ofbiz-release.sh b/process-ofbiz-release.sh
index 837fd92..8bbf8d3 100644
--- a/process-ofbiz-release.sh
+++ b/process-ofbiz-release.sh
@@ -33,19 +33,25 @@ curl -fsSL 
https://github.com/apache/ofbiz-framework/archive/refs/tags/release$1
 curl -fsSL 
https://github.com/apache/ofbiz-plugins/archive/refs/tags/release$1.tar.gz | 
tar -xz -C apache-ofbiz-$1/plugins/ --strip-components=1
 
 # Remove files that do not belong in the source release: plugin repository
-# metadata superseded by the framework's files, IDE/tooling configuration
-# and GitHub-specific configuration
+# metadata superseded by the framework's files, IDE/tooling configuration,
+# version control settings and GitHub/ASF infrastructure configuration.
+# -f because not every release branch contains all of these files.
 echo "## Removing files not included in the source release"
-rm apache-ofbiz-$1/plugins/LICENSE \
-   apache-ofbiz-$1/plugins/VERSION \
-   apache-ofbiz-$1/plugins/.project \
-   apache-ofbiz-$1/.pre-commit-config.yaml
-rm -r apache-ofbiz-$1/.github \
-      apache-ofbiz-$1/plugins/.github \
+rm -f apache-ofbiz-$1/plugins/LICENSE \
+      apache-ofbiz-$1/plugins/VERSION \
+      apache-ofbiz-$1/plugins/.project \
+      apache-ofbiz-$1/plugins/.asf.yaml \
+      apache-ofbiz-$1/.asf.yaml \
+      apache-ofbiz-$1/.gitattributes \
+      apache-ofbiz-$1/.hgignore \
+      apache-ofbiz-$1/.pre-commit-config.yaml
+rm -rf apache-ofbiz-$1/.github \
+       apache-ofbiz-$1/.devcontainer \
+       apache-ofbiz-$1/plugins/.github
 
 # Switch the README status badge from orange (development) to green (stable 
release)
 echo "## Marking the release as stable in README.adoc"
-sed -i -e 's/orange.svg/green.svg/g' apache-ofbiz-$1/README.adoc
+perl -pi -e 's/orange\.svg/green\.svg/g' apache-ofbiz-$1/README.adoc
 
 # Write the release version to the VERSION file
 echo "## Setting VERSION to $1"
@@ -53,7 +59,7 @@ echo "$1" > apache-ofbiz-$1/VERSION
 
 # Create the release archive (-T tests its integrity once written)
 echo -e "## Creating archive ${GRN}apache-ofbiz-$1.zip${NC}"
-zip  apache-ofbiz-$1.zip -r -T apache-ofbiz-$1/*
+zip apache-ofbiz-$1.zip -r -T apache-ofbiz-$1/
 
 # Sign the archive with the release manager's GPG key and compute its SHA-512 
checksum
 echo "## Signing the archive and computing its SHA-512 checksum"

Reply via email to