This is an automated email from the ASF dual-hosted git repository. nmalin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ofbiz-tools.git
The following commit(s) were added to refs/heads/master by this push: new a9f8533 Implemented: Add sh script for helping to ofbiz release generation. a9f8533 is described below commit a9f85339d187642fbbba1b8d4f23289a15fb6018 Author: Nicolas Malin <nicolas.ma...@nereide.fr> AuthorDate: Thu Apr 3 10:49:37 2025 +0200 Implemented: Add sh script for helping to ofbiz release generation. Clone ofbiz-framework and ofbiz-plugins (with the good branch to release) on the same directory and run at the same root : $ . /${scriptPath}/process-ofbiz-release.sh ${releaseVersion} --- process-ofbiz-release.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/process-ofbiz-release.sh b/process-ofbiz-release.sh new file mode 100644 index 0000000..5b783e3 --- /dev/null +++ b/process-ofbiz-release.sh @@ -0,0 +1,44 @@ +#!/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 + +# color definitions for 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}" + 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 .. + +# Remove unwanted file +rm apache-ofbiz-$1/gradle/wrapper/gradle-wrapper.jar apache-ofbiz-$1/plugins/LICENSE apache-ofbiz-$1/plugins/VERSION + +# Set the version +echo "$1" > apache-ofbiz-$1/VERSION + +# Zip +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 --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"