@@ -37,12 +37,13 @@ fail_for_invalid_args() {
37
37
38
38
# Constants
39
39
PROJECT_NAME=" Apache Log4j"
40
- PROJECT_SITE=" https://logging.apache.org/log4j"
40
+ PROJECT_ID=" log4j"
41
+ PROJECT_SITE=" https://logging.apache.org/$PROJECT_ID "
41
42
PROJECT_STAGING_SITE=" ${PROJECT_SITE/ apache.org/ staged.apache.org} "
42
43
PROJECT_REPO=" https://github.com/apache/logging-log4j2"
43
- PROJECT_DIST_DIR=" https://dist.apache.org/repos/dist/dev/logging/log4j"
44
44
PROJECT_VERSION=" $2 "
45
45
COMMIT_ID=" $3 "
46
+ PROJECT_DIST_URL=" https://dist.apache.org/repos/dist/dev/logging/$PROJECT_ID /$PROJECT_VERSION "
46
47
47
48
# Check release notes file
48
49
RELEASE_NOTES_FILE=" $SCRIPT_DIR /../target/generated-site/antora/modules/ROOT/pages/_release-notes/$PROJECT_VERSION .adoc"
@@ -55,13 +56,17 @@ dump_review_kit() {
55
56
wget -q -O - https://raw.githubusercontent.com/apache/logging-parent/main/.github/release-review-kit.txt \
56
57
| sed -n ' /-----8<-----~( cut here )~-----8<-----/,$p' \
57
58
| tail -n +2 \
58
- | sed -r -e " s/@PROJECT_DIST_DIR@/$PROJECT_DIST_DIR /g" -e " s/@PROJECT_VERSION@/$PROJECT_VERSION /g" -e ' s!^! !g'
59
+ | sed -e " s|^| |g
60
+ s|@PROJECT_ID@|$PROJECT_ID |g
61
+ s|@PROJECT_VERSION@|$PROJECT_VERSION |g
62
+ s|@PROJECT_DIST_URL@|$PROJECT_DIST_URL |g
63
+ s|@COMMIT_ID@|${COMMIT_ID: 0: 8} |g"
59
64
}
60
65
61
66
dump_release_notes () {
62
67
awk " f{print} /^Release date::/{f=1}" " $RELEASE_NOTES_FILE " \
63
- | sed -r ' s! ' $PROJECT_REPO ' /(issues|pull)/[0-9]+\[([0-9]+)\]! #\2!g ' \
64
- | sed -r ' s! https://github.com/([^/]+)/([^/]+)/(pull|issues)/([0-9]+)\[(\1/\2#\4)\]!\5! g'
68
+ | sed -r -e ' s| ' $PROJECT_REPO ' /(issues|pull)/[0-9]+\[([0-9]+)\]| #\2|g
69
+ s| https://github.com/([^/]+)/([^/]+)/(pull|issues)/([0-9]+)\[(\1/\2#\4)\]|\5| g'
65
70
}
66
71
67
72
case $1 in
@@ -76,8 +81,8 @@ This is a vote to release the $PROJECT_NAME \`$PROJECT_VERSION\`.
76
81
Website: $PROJECT_STAGING_SITE -$PROJECT_VERSION
77
82
GitHub: $PROJECT_REPO
78
83
Commit: $COMMIT_ID
79
- Distribution: $PROJECT_DIST_DIR
80
- Nexus: https://repository.apache.org/content/repositories/orgapachelogging-<CHECK >
84
+ Distribution: $PROJECT_DIST_URL
85
+ Nexus: https://repository.apache.org/content/repositories/orgapachelogging-<FIXME >
81
86
Signing key: 0x077e8893a6dcc33dd4a4d5b256e73ba9a0b592d0
82
87
83
88
Please download, test, and cast your votes on this mailing list.
0 commit comments