You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2022/01/03 22:11:45 UTC
[logging-log4j-scala] 01/02: Fix up release script
This is an automated email from the ASF dual-hosted git repository.
mattsicker pushed a commit to tag v12.1-rc2
in repository https://gitbox.apache.org/repos/asf/logging-log4j-scala.git
commit 7b08a7fdf8f4e32fb596ae53173f0ee525c06d94
Author: Matt Sicker <ma...@apache.org>
AuthorDate: Mon Jan 3 16:04:52 2022 -0600
Fix up release script
---
create-distributions.sh | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/create-distributions.sh b/create-distributions.sh
index 8f9ef10..90f8970 100755
--- a/create-distributions.sh
+++ b/create-distributions.sh
@@ -24,13 +24,14 @@ function sign_file() {
function create_sources_from_tag() {
out_format=$1
release_version=$2
- git archive --prefix=apache-log4j-api-scala-${release_version}-src/ -o target/apache-log4j-api-scala-${release_version}-src.${out_format} v${release_version}
+ tag_name=v$release_version-rc$3
+ git archive --prefix=apache-log4j-api-scala-${release_version}-src/ -o target/apache-log4j-api-scala-${release_version}-src.${out_format} ${tag_name}
sign_file target/apache-log4j-api-scala-${release_version}-src.${out_format}
}
function create_all_sources_from_tag() {
- create_sources_from_tag zip $1
- create_sources_from_tag tar.gz $1
+ create_sources_from_tag zip $1 $2
+ create_sources_from_tag tar.gz $1 $2
}
function create_sources() {
@@ -44,7 +45,7 @@ function create_all_sources() {
}
function create_all_binaries() {
- ./sbt -batch "; + package; packageDistributions"
+ sbt -batch "; + package; packageDistributions"
}
function create_all() {
@@ -55,10 +56,11 @@ function create_all() {
function main() {
case $1 in
SNAPSHOT) create_all;;
- *) create_all_sources_from_tag $1; create_all_binaries;;
+ *) create_all_sources_from_tag $1 $2; create_all_binaries;;
esac
}
tag=${1:-SNAPSHOT}
+rc=${2:-1}
-main ${tag}
+main ${tag} ${rc}