You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2026/10/22 16:44:47 UTC
(ofbiz-tools) branch master updated (16a0768 -> 844cdc7)
This is an automated email from the ASF dual-hosted git repository.
jacopoc pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/ofbiz-tools.git
from 16a0768 Improved: Remove github information from source release
new 1d4f0f0 Refactor release preparation script to streamline framework and plugin setup
new 411cd70 Refactor comments in the release preparation script for clarity and improve output messaging
new ee0f152 Fix the release archive contents
new 940afa0 Merge plugins LICENSE into the framework LICENSE in the source release
new 663c819 Add pre-flight checks to the release preparation script
new e18e2b0 Suppress the per-file output of zip in the release script
new 80bcff5 Improve output messaging in release preparation script
new c3a53f4 Rename process-ofbiz-release.sh to create-ofbiz-release.sh
new 9bfed35 Check that the release tag exists before creating the release folder
new 43adf8a Include the separator line when merging the plugins LICENSE
new f69d95e Enhance output messaging to include created directory in release preparation script
new 844cdc7 Add license header to create-ofbiz-release.sh
The 12 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
create-ofbiz-release.sh | 134 +++++++++++++++++++++++++++++++++++++++++++++++
process-ofbiz-release.sh | 53 -------------------
2 files changed, 134 insertions(+), 53 deletions(-)
create mode 100644 create-ofbiz-release.sh
delete mode 100644 process-ofbiz-release.sh
(ofbiz-tools) 10/12: Include the separator line when merging the plugins LICENSE
Posted by ja...@apache.org.
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 43adf8aced016f9aebd6716889131a2201c64cd0
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 18:36:47 2026 +0200
Include the separator line when merging the plugins LICENSE
Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
---
create-ofbiz-release.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/create-ofbiz-release.sh b/create-ofbiz-release.sh
index 5f4423c..e4ef6b6 100644
--- a/create-ofbiz-release.sh
+++ b/create-ofbiz-release.sh
@@ -66,10 +66,10 @@ mkdir -p apache-ofbiz-$1/plugins/
curl -fsSL https://github.com/apache/ofbiz-framework/archive/refs/tags/release$1.tar.gz | tar -xz -C apache-ofbiz-$1/ --strip-components=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
-# Append the plugin-specific part of the plugins LICENSE (everything after the
-# first separator line) to the framework LICENSE, before the former is removed
+# Append the plugin-specific part of the plugins LICENSE (everything from the
+# first separator line on) to the framework LICENSE, before the former is removed
echo "## Merging the plugins LICENSE into the framework LICENSE"
-awk 'found; !found && index($0, "=========================================================================") {found=1}' \
+awk '!found && index($0, "=========================================================================") {found=1} found' \
apache-ofbiz-$1/plugins/LICENSE >> apache-ofbiz-$1/LICENSE
# Remove files that do not belong in the source release: plugin repository
(ofbiz-tools) 01/12: Refactor release preparation script to streamline framework and plugin setup
Posted by ja...@apache.org.
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 1d4f0f002cf849bd8e2b217cb7e13fe8fb65442f
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 15:00:25 2026 +0200
Refactor release preparation script to streamline framework and plugin setup
---
process-ofbiz-release.sh | 21 +++++++--------------
1 file changed, 7 insertions(+), 14 deletions(-)
diff --git a/process-ofbiz-release.sh b/process-ofbiz-release.sh
index 6451422..758a568 100644
--- a/process-ofbiz-release.sh
+++ b/process-ofbiz-release.sh
@@ -13,21 +13,14 @@ if [[ $# -eq 0 ]] ; then
exit 1
fi
-# prepare framework
-cd ofbiz-framework/
-git tag release$1
-git checkout-index -a -f --prefix=../apache-ofbiz-$1/
-
-# prepare plugins
-cd ../ofbiz-plugins/
-git tag release$1
-git checkout-index -a -f --prefix=../apache-ofbiz-$1/plugins/
-
-cd ..
+mkdir -p apache-ofbiz-$1/
+mkdir -p apache-ofbiz-$1/plugins/
+set -o pipefail
+curl -fsSL https://github.com/apache/ofbiz-framework/archive/refs/tags/release$1.tar.gz | tar -xz -C apache-ofbiz-$1/ --strip-components=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 unwanted file
-rm apache-ofbiz-$1/gradle/wrapper/gradle-wrapper.jar \
- apache-ofbiz-$1/plugins/LICENSE \
+rm apache-ofbiz-$1/plugins/LICENSE \
apache-ofbiz-$1/plugins/VERSION \
apache-ofbiz-$1/plugins/.project \
apache-ofbiz-$1/.pre-commit-config.yaml
@@ -44,7 +37,7 @@ echo "$1" > apache-ofbiz-$1/VERSION
zip apache-ofbiz-$1.zip -r -T apache-ofbiz-$1/*
# Sign
-gpg --armor --output apache-ofbiz-$1.zip.asc --detach-sig apache-ofbiz-$1.zip
+gpg --armor --detach-sig --output apache-ofbiz-$1.zip.asc apache-ofbiz-$1.zip
gpg --print-md SHA512 apache-ofbiz-$1.zip > apache-ofbiz-$1.zip.sha512
# To finish
(ofbiz-tools) 05/12: Add pre-flight checks to the release preparation script
Posted by ja...@apache.org.
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 663c819054d9e45e93446bf906af2c205e792c06
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 16:45:33 2026 +0200
Add pre-flight checks to the release preparation script
Before changing anything, verify that all the required tools (curl, tar,
awk, perl, zip, gpg) and a GPG secret key are available, and that no output
of a previous run exists in the current directory. Also abort on the first
failing command (set -euo pipefail) instead of continuing and producing an
incomplete release archive.
Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
---
process-ofbiz-release.sh | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/process-ofbiz-release.sh b/process-ofbiz-release.sh
index 89f1e0a..b9ac296 100644
--- a/process-ofbiz-release.sh
+++ b/process-ofbiz-release.sh
@@ -19,16 +19,42 @@ RED='\033[0;31m'
GRN='\033[0;32m'
NC='\033[0m' # No Color
+# Abort on the first failing command, unset variable or failed pipeline stage
+set -euo pipefail
+
if [[ $# -eq 0 ]] ; then
echo -e "Usage: $0 ${RED}<version>${NC} (e.g. $0 24.09.01)"
exit 1
fi
+# Make sure all the required tools are available before changing anything
+missing=()
+for tool in curl tar awk perl zip gpg; do
+ command -v "$tool" >/dev/null 2>&1 || missing+=("$tool")
+done
+if [[ ${#missing[@]} -gt 0 ]]; then
+ echo -e "${RED}Missing required tools: ${missing[*]}${NC}"
+ exit 1
+fi
+
+# Make sure a GPG secret key is available to sign the archive
+if [[ -z "$(gpg --list-secret-keys 2>/dev/null)" ]]; then
+ echo -e "${RED}No GPG secret key found to sign the release archive${NC}"
+ exit 1
+fi
+
+# Refuse to overwrite or mix with the output of a previous run
+for path in apache-ofbiz-$1 apache-ofbiz-$1.zip apache-ofbiz-$1.zip.asc apache-ofbiz-$1.zip.sha512; do
+ if [[ -e "$path" ]]; then
+ echo -e "${RED}$path already exists: remove it or run the script from another directory${NC}"
+ exit 1
+ fi
+done
+
# Download the tagged framework sources and unpack the tagged plugins under plugins/
echo -e "## Downloading sources for tag ${GRN}release$1${NC} from GitHub"
mkdir -p apache-ofbiz-$1/
mkdir -p apache-ofbiz-$1/plugins/
-set -o pipefail
curl -fsSL https://github.com/apache/ofbiz-framework/archive/refs/tags/release$1.tar.gz | tar -xz -C apache-ofbiz-$1/ --strip-components=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
(ofbiz-tools) 02/12: Refactor comments in the release preparation script for clarity and improve output messaging
Posted by ja...@apache.org.
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 411cd70dfad18b0561ae51521433c9342fd87190
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 15:07:13 2026 +0200
Refactor comments in the release preparation script for clarity and improve output messaging
---
process-ofbiz-release.sh | 49 ++++++++++++++++++++++++++++++++++--------------
1 file changed, 35 insertions(+), 14 deletions(-)
diff --git a/process-ofbiz-release.sh b/process-ofbiz-release.sh
index 758a568..837fd92 100644
--- a/process-ofbiz-release.sh
+++ b/process-ofbiz-release.sh
@@ -1,25 +1,41 @@
#!/bin/bash
-# Script to help the release creation
-# we consider that you execute this on a directory with the source code from git present on two directory ofbiz-framework and ofbiz-plugins
-# Just run like this $. ${scriptPath}/process-ofbiz-release.sh 24.09.01
+# Builds, signs and checksums the Apache OFBiz source release archive.
+#
+# The sources are downloaded from the release tags on GitHub, so the
+# "release<version>" tag must already be pushed to both the ofbiz-framework
+# and ofbiz-plugins repositories before running this script.
+#
+# Usage, from the directory where the release files should be created:
+# bash /path/to/process-ofbiz-release.sh 24.09.01
+#
+# Output files:
+# apache-ofbiz-<version>/ unpacked release tree
+# apache-ofbiz-<version>.zip release archive
+# apache-ofbiz-<version>.zip.asc detached GPG signature
+# apache-ofbiz-<version>.zip.sha512 SHA-512 checksum
-# color definitions for output
+# Colors for terminal output
RED='\033[0;31m'
GRN='\033[0;32m'
NC='\033[0m' # No Color
if [[ $# -eq 0 ]] ; then
- echo -e "Usage: $0 ${RED}[version]${NC}"
+ echo -e "Usage: $0 ${RED}<version>${NC} (e.g. $0 24.09.01)"
exit 1
fi
+# Download the tagged framework sources and unpack the tagged plugins under plugins/
+echo -e "## Downloading sources for tag ${GRN}release$1${NC} from GitHub"
mkdir -p apache-ofbiz-$1/
mkdir -p apache-ofbiz-$1/plugins/
set -o pipefail
curl -fsSL https://github.com/apache/ofbiz-framework/archive/refs/tags/release$1.tar.gz | tar -xz -C apache-ofbiz-$1/ --strip-components=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 unwanted file
+# 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
+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 \
@@ -27,20 +43,25 @@ rm apache-ofbiz-$1/plugins/LICENSE \
rm -r apache-ofbiz-$1/.github \
apache-ofbiz-$1/plugins/.github \
-# Put stable tag
+# 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
-# Set the version
+# Write the release version to the VERSION file
+echo "## Setting VERSION to $1"
echo "$1" > apache-ofbiz-$1/VERSION
-# Zip
+# 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/*
-# Sign
+# 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"
gpg --armor --detach-sig --output apache-ofbiz-$1.zip.asc apache-ofbiz-$1.zip
gpg --print-md SHA512 apache-ofbiz-$1.zip > apache-ofbiz-$1.zip.sha512
-# To finish
-echo -e "## ${GRN}Done${NC}, You can check the generated archive ${GRN}apache-ofbiz-$1.zip${NC}"
-echo -e "## If it's validate ${RED}don't forget to push the tag${NC} on ofbiz-framework and ofbiz-plugins"
-echo -e "## -> git push origin tag release$1"
+echo -e "## ${GRN}Done.${NC} Created:"
+echo -e "## ${GRN}apache-ofbiz-$1.zip${NC}"
+echo -e "## ${GRN}apache-ofbiz-$1.zip.asc${NC}"
+echo -e "## ${GRN}apache-ofbiz-$1.zip.sha512${NC}"
+echo -e "## ${RED}Check the archive contents, signature and checksum before publishing the release.${NC}"
(ofbiz-tools) 08/12: Rename process-ofbiz-release.sh to create-ofbiz-release.sh
Posted by ja...@apache.org.
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 c3a53f436956eb7f2349d2a2adab4d075d26de96
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 18:20:44 2026 +0200
Rename process-ofbiz-release.sh to create-ofbiz-release.sh
The new name better describes what the script does (it creates the signed
and checksummed source release archive) and pairs with the existing
verify-ofbiz-release.sh script.
Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
---
process-ofbiz-release.sh => create-ofbiz-release.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/process-ofbiz-release.sh b/create-ofbiz-release.sh
similarity index 98%
rename from process-ofbiz-release.sh
rename to create-ofbiz-release.sh
index 21f30e7..5dc3c95 100644
--- a/process-ofbiz-release.sh
+++ b/create-ofbiz-release.sh
@@ -6,7 +6,7 @@
# and ofbiz-plugins repositories before running this script.
#
# Usage, from the directory where the release files should be created:
-# bash /path/to/process-ofbiz-release.sh 24.09.01
+# bash /path/to/create-ofbiz-release.sh 24.09.01
#
# Output files:
# apache-ofbiz-<version>/ unpacked release tree
(ofbiz-tools) 07/12: Improve output messaging in release preparation script
Posted by ja...@apache.org.
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 80bcff5ea0aeccacab914b8af067920969422be1
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 18:01:30 2026 +0200
Improve output messaging in release preparation script
---
process-ofbiz-release.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/process-ofbiz-release.sh b/process-ofbiz-release.sh
index 098f2e8..21f30e7 100644
--- a/process-ofbiz-release.sh
+++ b/process-ofbiz-release.sh
@@ -98,7 +98,8 @@ echo "## Signing the archive and computing its SHA-512 checksum"
gpg --armor --detach-sig --output apache-ofbiz-$1.zip.asc apache-ofbiz-$1.zip
gpg --print-md SHA512 apache-ofbiz-$1.zip > apache-ofbiz-$1.zip.sha512
-echo -e "## ${GRN}Done.${NC} Created:"
+echo -e "## ${GRN}Done.${NC}"
+echo -e "## Created:"
echo -e "## ${GRN}apache-ofbiz-$1.zip${NC}"
echo -e "## ${GRN}apache-ofbiz-$1.zip.asc${NC}"
echo -e "## ${GRN}apache-ofbiz-$1.zip.sha512${NC}"
(ofbiz-tools) 03/12: Fix the release archive contents
Posted by ja...@apache.org.
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 <ja...@gmail.com>
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 <no...@anthropic.com>
---
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"
(ofbiz-tools) 04/12: Merge plugins LICENSE into the framework LICENSE in the source release
Posted by ja...@apache.org.
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 940afa007ad8ce07e59e211f73408ca8cc2ab9e3
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 16:04:39 2026 +0200
Merge plugins LICENSE into the framework LICENSE in the source release
Before plugins/LICENSE is removed from the release tree, append everything
after its first "=====" separator line (the plugin-specific licensing
information) to the framework LICENSE file, so that information is still
included in the source release.
Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
---
process-ofbiz-release.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/process-ofbiz-release.sh b/process-ofbiz-release.sh
index 8bbf8d3..89f1e0a 100644
--- a/process-ofbiz-release.sh
+++ b/process-ofbiz-release.sh
@@ -32,6 +32,12 @@ set -o pipefail
curl -fsSL https://github.com/apache/ofbiz-framework/archive/refs/tags/release$1.tar.gz | tar -xz -C apache-ofbiz-$1/ --strip-components=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
+# Append the plugin-specific part of the plugins LICENSE (everything after the
+# first separator line) to the framework LICENSE, before the former is removed
+echo "## Merging the plugins LICENSE into the framework LICENSE"
+awk 'found; !found && index($0, "=========================================================================") {found=1}' \
+ apache-ofbiz-$1/plugins/LICENSE >> apache-ofbiz-$1/LICENSE
+
# Remove files that do not belong in the source release: plugin repository
# metadata superseded by the framework's files, IDE/tooling configuration,
# version control settings and GitHub/ASF infrastructure configuration.
(ofbiz-tools) 09/12: Check that the release tag exists before creating the release folder
Posted by ja...@apache.org.
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 9bfed35879350ab700e00aadac6ae45ac16f3552
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 18:27:15 2026 +0200
Check that the release tag exists before creating the release folder
Before downloading, verify that the release<version> tag exists in both the
ofbiz-framework and ofbiz-plugins GitHub repositories, and stop with an
error message otherwise, so a mistyped or not yet pushed tag no longer
leaves an empty release folder behind.
Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
---
create-ofbiz-release.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/create-ofbiz-release.sh b/create-ofbiz-release.sh
index 5dc3c95..5f4423c 100644
--- a/create-ofbiz-release.sh
+++ b/create-ofbiz-release.sh
@@ -51,6 +51,14 @@ for path in apache-ofbiz-$1 apache-ofbiz-$1.zip apache-ofbiz-$1.zip.asc apache-o
fi
done
+# Make sure the release tag exists in both repositories before creating anything
+for repo in ofbiz-framework ofbiz-plugins; do
+ if ! curl -fsIL -o /dev/null https://github.com/apache/$repo/archive/refs/tags/release$1.tar.gz; then
+ echo -e "${RED}Tag release$1 not found in the apache/$repo repository on GitHub${NC}"
+ exit 1
+ fi
+done
+
# Download the tagged framework sources and unpack the tagged plugins under plugins/
echo -e "## Downloading sources for tag ${GRN}release$1${NC} from GitHub"
mkdir -p apache-ofbiz-$1/
(ofbiz-tools) 06/12: Suppress the per-file output of zip in the release script
Posted by ja...@apache.org.
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 e18e2b091c99b7fe9a4393907f3be23a99ea8477
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 17:56:22 2026 +0200
Suppress the per-file output of zip in the release script
Co-Authored-By: Claude Opus 5.5 <no...@anthropic.com>
---
process-ofbiz-release.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/process-ofbiz-release.sh b/process-ofbiz-release.sh
index b9ac296..098f2e8 100644
--- a/process-ofbiz-release.sh
+++ b/process-ofbiz-release.sh
@@ -91,7 +91,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 -q 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"
(ofbiz-tools) 11/12: Enhance output messaging to include created directory in release preparation script
Posted by ja...@apache.org.
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 f69d95eeef6fe65bce8473dcf982d499bd6de8ef
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 18:38:55 2026 +0200
Enhance output messaging to include created directory in release preparation script
---
create-ofbiz-release.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/create-ofbiz-release.sh b/create-ofbiz-release.sh
index e4ef6b6..34fac73 100644
--- a/create-ofbiz-release.sh
+++ b/create-ofbiz-release.sh
@@ -108,6 +108,7 @@ gpg --print-md SHA512 apache-ofbiz-$1.zip > apache-ofbiz-$1.zip.sha512
echo -e "## ${GRN}Done.${NC}"
echo -e "## Created:"
+echo -e "## ${GRN}apache-ofbiz-$1/${NC}"
echo -e "## ${GRN}apache-ofbiz-$1.zip${NC}"
echo -e "## ${GRN}apache-ofbiz-$1.zip.asc${NC}"
echo -e "## ${GRN}apache-ofbiz-$1.zip.sha512${NC}"
(ofbiz-tools) 12/12: Add license header to create-ofbiz-release.sh
Posted by ja...@apache.org.
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 844cdc789d4a4ab380663b25acf3f2eadf307d47
Author: Jacopo Cappellato <ja...@gmail.com>
AuthorDate: Thu Oct 22 18:39:56 2026 +0200
Add license header to create-ofbiz-release.sh
---
create-ofbiz-release.sh | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/create-ofbiz-release.sh b/create-ofbiz-release.sh
index 34fac73..4b98d54 100644
--- a/create-ofbiz-release.sh
+++ b/create-ofbiz-release.sh
@@ -1,4 +1,23 @@
#!/bin/bash
+#####################################################################
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#####################################################################
+
# Builds, signs and checksums the Apache OFBiz source release archive.
#
# The sources are downloaded from the release tags on GitHub, so the