You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2021/09/07 14:08:45 UTC

svn commit: r1893043 - in /httpd/dev-tools: release/ v2/

Author: icing
Date: Tue Sep  7 14:08:45 2021
New Revision: 1893043

URL: http://svn.apache.org/viewvc?rev=1893043&view=rev
Log:
 * another round of renames, all moved to 'release' directory
 * script names now reflect order they need to run
 * r4-strage-release.sh added that prepares locally all changes
   when going after voting to a real release
 * r5+r6 are stubs only, TBD


Added:
    httpd/dev-tools/release/
      - copied from r1893042, httpd/dev-tools/v2/
    httpd/dev-tools/release/r0-make-candidate.sh
      - copied, changed from r1893041, httpd/dev-tools/v2/make-candidate.sh
    httpd/dev-tools/release/r1-make-tars.sh
      - copied, changed from r1893041, httpd/dev-tools/v2/make-tars.sh
    httpd/dev-tools/release/r2-prep-vote.sh
      - copied, changed from r1893041, httpd/dev-tools/v2/push-tars.sh
    httpd/dev-tools/release/r3-push-release-tars.sh
      - copied, changed from r1893041, httpd/dev-tools/v2/release-candidate.sh
    httpd/dev-tools/release/r4-stage-release.sh   (with props)
    httpd/dev-tools/release/r5-commit-staged-release.sh   (with props)
    httpd/dev-tools/release/r6-announce.sh   (with props)
Removed:
    httpd/dev-tools/release/make-candidate.sh
    httpd/dev-tools/release/make-tars.sh
    httpd/dev-tools/release/push-tars.sh
    httpd/dev-tools/release/release-candidate.sh
    httpd/dev-tools/release/update-branch.sh
    httpd/dev-tools/v2/
Modified:
    httpd/dev-tools/release/README
    httpd/dev-tools/release/common-lib.sh
    httpd/dev-tools/release/reset-candidate.sh

Modified: httpd/dev-tools/release/README
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/README?rev=1893043&r1=1893042&r2=1893043&view=diff
==============================================================================
--- httpd/dev-tools/release/README (original)
+++ httpd/dev-tools/release/README Tue Sep  7 14:08:45 2021
@@ -1,43 +1,50 @@
-version2 of release scripts
+httpd release scripts
 
 STATUS
- - implemented up to and including pushing tarballs to the "dev" distribution
-   repository and calling for a vote.
- - the original "announce.sh" should continue to work
+ - implemented up to and including pushing staging release changes to
+   be commited to the repositories and website
 
 MISSING
- - pushing (copying?) tarballs from "dev" to the real release location
  - the check if the gpg/pgp key used for signing is present in the
    dist.apache.org KEYS file has been discarded. It seems to rely on
    some output formatting of fingerprints that does not work the same
    on all tools platforms.
- - stepping the version in the local checkout after a (failed?) release.
+ - committing the staged release changes
+ - sending the announce mails
 
 Usage overview:
- in a local checkout of the branch you want to release, run
-   > $BUILD_TOOLS/v2/make-candidate.sh version
-   > $BUILD_TOOLS/v2/make-tars.sh version
-   > $BUILD_TOOLS/v2/push-tars.sh version
-   # tars are available at https://dist.apache.org/repos/dist/dev/ now
-   # send out a mail for voting on it
+ - have a checkout of https://svn.apache.org/repos/asf/httpd/dev-tools in $DEV_TOOLS
+ - be in a local checkout of project the branch you want to release:
+   (replace 'rc1' with 'rc2', 'rc3' on need)
+   > $DEV_TOOLS/release/r0-make-candidate.sh rc1
+   > $DEV_TOOLS/release/r1-make-tars.sh rc1
+   > $DEV_TOOLS/release/r2-prep-vote.sh rc1
+     # tars are available at https://dist.apache.org/repos/dist/dev/ now
+     # send out a mail for voting on it
 
+ On success:
+   > $DEV_TOOLS/release/r3-push-release-tars.sh rc1
+     # tars are moved to https://dist.apache.org/repos/dist/release/
+     # the SVN tags/candidate-$FULL_VERSION is moved to tags/$VERSION
+     # wait for files to distribute on mirrors
+   > $DEV_TOOLS/release/r4-stage-release.sh rc1
+     # ALL CHANGES HERE ARE LOCAL ONLY
+     # folds in CVE related information for CHANGES files
+     # moves CVEs to pmc/resolved
+     # update ./CHANGES ./STATUS ./include/ap_release.h
+     # checks out and modifies project website
    # ----------------
-   # update to here, everything can be reverted via 'reset-candidate.sh'
+   # update to here, everything can be reverted via '$DEV_TOOLS/release/reset-candidate.sh'
    #-----------------
+   > $DEV_TOOLS/release/r5-commit-staged-release.sh
+     # commit all locally staged changes to repositories and website
+   > $DEV_TOOLS/release/r6-announce.sh
+     # announce it to the world by mail
 
- On success:
-   > $BUILD_TOOLS/v2/release-candidate.sh version
-   # tars are moved to https://dist.apache.org/repos/dist/release/
-   # the SVN tags/candidate-$FULL_VERSION is moved to tags/$VERSION
-   # send out the announcements
-   > $BUILD_TOOLS/announce.sh
-   > $BUILD_TOOLS/v2/update-branch.sh next_version
-   # the patch information in local checkout is updated, the docs
-   # are built again and CHANGES and STATUS have the new version added.
 
  On failure or when aborting for other reasons:
-   > $BUILD_TOOLS/v2/reset-candidate.sh version
-   # removes all additions to SVN repositories and clears local dist
+   > $DEV_TOOLS/release/reset-candidate.sh version
+     # removes all additions to SVN repositories and clears local dist
 
 
 The local checkout:
@@ -51,7 +58,7 @@ The local checkout:
 Handling of VERSIONs:
  - You *should* just specify the version suffix and let the scripts figure
    out the rest. Example:
-   > $BUILD_TOOLS/v2/make-candidate.sh rc1
+   > $DEV_TOOLS/release/make-candidate.sh rc1
    to make the "release candidate 1" of the current checkout version.
  - You *may* specify the complete version as argument to the scripts. If you do not,
    the scripts will use the version they find in your local checkout. After
@@ -93,7 +100,7 @@ What make-tars.sh does:
    it the key identifier (email) it should use as:
    > make-tars.sh -s email-id
 
-What push-tars.sh does:
+What prep-vote.sh does:
  - checks if the local files from "make-tars.sh" are found in dist directory
  - checks out https://dist.apache.org/repos/dist/dev/httpd inside dist
  - modifies this checkout by adding the tarballs, CHANGES_$major.$minor

Modified: httpd/dev-tools/release/common-lib.sh
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/common-lib.sh?rev=1893043&r1=1893042&r2=1893043&view=diff
==============================================================================
--- httpd/dev-tools/release/common-lib.sh (original)
+++ httpd/dev-tools/release/common-lib.sh Tue Sep  7 14:08:45 2021
@@ -1,5 +1,9 @@
 #!/bin/sh
 
+#Make sure English is used when formating dates and other things
+export LANG=en_US.UTF-8
+
+
 fail() {
   if test -n "$*"; then
     echo "ERROR: $*" >&2
@@ -40,8 +44,6 @@ ask_yes_no() {
 detect_checkout() {
   out=`svn stat 2>&1 >/dev/null`
   test -z "$out" || fail "local directory does not seem to be a SVN checkout.\n$out"
-  out=`svn stat`
-  test -z "$out" || fail "local checkout is not clean.\n$out"
   SVN_URL=`svn info --show-item url` || fail "unable to determine SVN url"
   test -n "$SVN_URL" || fail "unable to determine SVN url"
   case "$SVN_URL" in
@@ -61,6 +63,11 @@ detect_checkout() {
   test -n "$SVN_REV" || fail "unable to determine SVN revision"
 }
 
+assure_clean_checkout() {
+  out=`svn stat`
+  test -z "$out" || fail "local checkout is not clean.\n$out"
+}
+
 # given the version input (possibly empty),
 # detect/check the version components and set variabels
 # VERSION      the version string "major.minor.patch"
@@ -324,4 +331,114 @@ fixup_httpd_export() {
   fi
   find "${export_dir}"/docs/manual -name \*.xml -o -name \*.xml.\* | xargs rm -rf
   find "${export_dir}"/docs/manual -name \*.xsl -o -name \*.xsl.\* | xargs rm -rf
+}
+
+add_changes_entry() {
+  CHANGES="$1"
+  ENTRY="$2"
+  test -f "${CHANGES}" || fail "add_changes_entry: changes ${CHANGES} not found"
+  test -f "${ENTRY}" || fail "add_changes_entry: entry ${ENTRY} not found"
+  cp "${CHANGES}" "${CHANGES}".tmp ;
+  awk -v fname="${ENTRY}" \
+    'BEGIN{done = 0; active = 0} done == 0 && active == 0 && /^Changes with Apache /{
+        active = 1; print; next};
+      /^( *\*|Changes with Apache )/ && active == 1 && done == 0 {
+        rec=$0; while(getline<fname) {
+          if (! ($0 ~ /^ *$/)){print}
+        }
+        printf "\n"; print rec; active = 0; done = 1; next
+      } //;' "${CHANGES}".tmp > "${CHANGES}"
+  rm "${CHANGES}".tmp
+}
+
+stage_checkout_release() {
+  # calculate the next patch version
+  is_int ${v_patch} || fail "version patch '${v_patch}' is not a number"
+  next_patch=`expr ${v_patch} + 1`
+  NEXT_VERSION="${v_major}.${v_minor}.${next_patch}"
+
+  # Add the corresponding version placeholder in CHANGES.
+  perl -pi -e "s{(.*coding: utf-8.*)}{\$1\nChanges with Apache ${NEXT_VERSION}\n}" CHANGES
+  # Note the tag date in the STATUS file.
+  if test -f STATUS; then
+    date_string=`date '+%B %d, %Y'`
+    perl -pi -e '
+      if(/^(\s+)('${VERSION}'\s+):/){
+        $size = length $2;
+        $newline1 = sprintf("${1}%-${size}s", "'${NEXT_VERSION}'") . ": In development\n";
+        $newline2 = sprintf("${1}%-${size}s", "'${VERSION}'") . ": Released on '"${date_string}"'\n";
+        $_="${newline1}${newline2}";
+      }
+      ' STATUS
+  fi
+
+  # set the patch number of the next version
+  if test -f include/ap_release.h; then
+    echo "setting patch number in include/ap_release.h"
+    perl -pi -e 's/(#define\s+AP_SERVER_PATCHLEVEL_NUMBER\s+)\d*/${1}'${next_patch}'/g' include/ap_release.h
+    if ! grep -e "^#define *AP_SERVER_PATCHLEVEL_NUMBER *${next_patch}\$" include/ap_release.h >/dev/null 2>&1;then
+      fail "setting of AP_SERVER_PATCHLEVEL_NUMBER did not return expected value of ${next_patch}"
+    fi
+  fi
+
+  # Ensure the Copyright date reflects the current year
+  current_year=`date +%Y`
+  for src in NOTICE docs/manual/style/xsl/common.xsl; do
+    if test -f "$src"; then
+      perl -pi -e "s/Copyright \d+ The Apache Software Foundation./Copyright $current_year The Apache Software Foundation./g" "$src"
+    fi
+  done
+
+  if test -d docs/manual; then
+    if test -f docs/manual/style/version.ent; then
+      # Set ENTITY httpd.patch in docs/manual/style/version.ent.
+      echo "setting patch version in docs/manual/style/version.ent"
+      perl -pi -e 's/(.*ENTITY httpd.patch ")(\d+)(.*)/${1}'${next_patch}'${3}/g' docs/manual/style/version.ent
+      if ! grep -e "ENTITY *httpd.patch *\"${next_patch}\"" docs/manual/style/version.ent >/dev/null 2>&1;then
+        fail "setting of ENTITY httpd.patch did not return expected value of ${next_patch}"
+      fi
+    fi
+
+    # Execute ./build.sh all convmap to ensure that the documentation transformations are up to date.
+    echo "rebuilding manuals"
+    pushd docs/manual >/dev/null
+    #See http://httpd.apache.org/docs-project/docsformat.html for these instructions
+    if test -d build; then
+      svn update build
+    else
+      svn checkout https://svn.apache.org/repos/asf/httpd/docs-build/trunk build
+    fi
+    pushd build >/dev/null
+    ./build.sh all convmap
+    ./build.sh validate-xml
+    ./build.sh validate-xhtml
+    popd >/dev/null
+    popd >/dev/null
+  fi
+}
+
+stage_website_release() {
+  DIST_SITEPATH="$1"
+  SVN_SITE_URL=https://svn.apache.org/repos/asf/${PROJECT}/site/trunk/content/
+  rm -rf "${DIST_SITEPATH}"
+  svn checkout --depth=empty "${SVN_SITE_URL}" "${DIST_SITEPATH}"
+
+  #Update the site content with the new release date and version
+  iso_date=`date +%Y-%m-%d`
+  svn update "${DIST_SITEPATH}"/doap.rdf
+  perl -pi -e "s/${v_major}\.${v_minor}\.\d+/${VERSION}/g" "${DIST_SITEPATH}"/doap.rdf
+  perl -pi -e "s|<created>.*|<created>$iso_date</created>|g" "${DIST_SITEPATH}"/doap.rdf
+
+  #Modify the home page by replacing the date and the version string
+  svn update "${DIST_SITEPATH}"/index.mdtext
+  perl -pi -e "s|Apache httpd $major.$minor.* Released <span>.*</span>|Apache httpd ${VERSION} Released <span>$iso_date</span>|g" "${DIST_SITEPATH}"/index.mdtext
+  perl -pi -e "s/${v_major}\.${v_minor}\.\d+/${VERSION}/g" "${DIST_SITEPATH}"/index.mdtext
+
+  #Downloads page
+  svn update "${DIST_SITEPATH}"/download.mdtext
+  perl -pi -e "s/${v_major}\.${v_minor}\.\d+/${VERSION}/g" "${DIST_SITEPATH}"/download.mdtext
+  perl -pi -e "s/\\d{4}-\\d{2}-\\d{2}/$iso_date/ if /${VERSION}/" "${DIST_SITEPATH}"/download.mdtext
+  if ! grep -e "# Apache HTTP Server ${VERSION} (httpd): ${VERSION}.*<span>$iso_date</span>" "${DIST_SITEPATH}"/download.mdtext >/dev/null;then
+    fail "Failed to update the release version and/or date in download.mdtext"
+  fi
 }
\ No newline at end of file

Copied: httpd/dev-tools/release/r0-make-candidate.sh (from r1893041, httpd/dev-tools/v2/make-candidate.sh)
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/r0-make-candidate.sh?p2=httpd/dev-tools/release/r0-make-candidate.sh&p1=httpd/dev-tools/v2/make-candidate.sh&r1=1893041&r2=1893043&rev=1893043&view=diff
==============================================================================
--- httpd/dev-tools/v2/make-candidate.sh (original)
+++ httpd/dev-tools/release/r0-make-candidate.sh Tue Sep  7 14:08:45 2021
@@ -2,8 +2,8 @@
 
 # Create a release candidate for voting in a svn checkout
 #
-# USAGE: make-candidate.sh [version]
-# EXAMPLE: make-candidate.sh 2.4.49
+# USAGE: r0-make-candidate.sh [version]
+# EXAMPLE: r0-make-candidate.sh 2.4.49
 #
 # This script is called in a built svn checkout of the branch for which
 # a release candidate shall be made:
@@ -17,7 +17,7 @@
 #Bail when non-zero return codes are encountered
 set -e
 
-current_year=`date +%Y`
+source `dirname $0`/common-lib.sh
 
 usage () {
     cat <<EOF 1>&2
@@ -33,8 +33,6 @@ EOF
   exit 1
 }
 
-source `dirname $0`/common-lib.sh
-
 while getopts "hy" opt; do
     case $opt in
         h)  usage
@@ -43,8 +41,10 @@ while getopts "hy" opt; do
             ;;
     esac
 done
+shift $((OPTIND-1))
 
 detect_checkout
+assure_clean_checkout
 detect_version $1
 
 PROJECT=`basename $SVN_BASE`
@@ -125,6 +125,7 @@ fi
 
 # Ensure the Copyright date reflects the current year
 for src in NOTICE docs/manual/style/xsl/common.xsl; do
+  current_year=`date +%Y`
   if test -f "$src"; then
     perl -pi -e "s/Copyright \d+ The Apache Software Foundation./Copyright $current_year The Apache Software Foundation./g" "$src"
   fi

Copied: httpd/dev-tools/release/r1-make-tars.sh (from r1893041, httpd/dev-tools/v2/make-tars.sh)
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/r1-make-tars.sh?p2=httpd/dev-tools/release/r1-make-tars.sh&p1=httpd/dev-tools/v2/make-tars.sh&r1=1893041&r2=1893043&rev=1893043&view=diff
==============================================================================
--- httpd/dev-tools/v2/make-tars.sh (original)
+++ httpd/dev-tools/release/r1-make-tars.sh Tue Sep  7 14:08:45 2021
@@ -2,8 +2,8 @@
 
 # Create the release tars from a svn candidate tag
 #
-# USAGE: make-tars.sh [version]
-# EXAMPLE: make-tars.sh 2.4.49
+# USAGE: r1-make-tars.sh [version]
+# EXAMPLE: r1-make-tars.sh 2.4.49
 #
 # Create the tar files for a release candidate svn tag
 # @version       the version identifier, major.minor.patch, to use. If not given
@@ -15,6 +15,8 @@
 #Bail when non-zero return codes are encountered
 set -e
 
+source `dirname $0`/common-lib.sh
+
 usage () {
     cat <<EOF 1>&2
 usage: $0 [options] [version]
@@ -31,8 +33,6 @@ EOF
   exit 1
 }
 
-source `dirname $0`/common-lib.sh
-
 signing_user=
 while getopts "hs" opt; do
     case $opt in
@@ -42,6 +42,7 @@ while getopts "hs" opt; do
             ;;
     esac
 done
+shift $((OPTIND-1))
 
 detect_checkout
 detect_version $1

Copied: httpd/dev-tools/release/r2-prep-vote.sh (from r1893041, httpd/dev-tools/v2/push-tars.sh)
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/r2-prep-vote.sh?p2=httpd/dev-tools/release/r2-prep-vote.sh&p1=httpd/dev-tools/v2/push-tars.sh&r1=1893041&r2=1893043&rev=1893043&view=diff
==============================================================================
--- httpd/dev-tools/v2/push-tars.sh (original)
+++ httpd/dev-tools/release/r2-prep-vote.sh Tue Sep  7 14:08:45 2021
@@ -1,9 +1,7 @@
 #!/bin/sh
 
-# Push candidate release tarballs in directory to the dev or release dist repos
+# Take generated tarballs and call vor a vote.
 #
-# USAGE: push.sh [version]
-# version: x.y.z (example 2.4.38)
 
 #Useful for debugging
 #set -x
@@ -11,14 +9,13 @@
 #Bail when non-zero return codes are encountered
 set -e
 
-#Make sure English is used when formating dates
-export LANG=en_US.UTF-8
+source `dirname $0`/common-lib.sh
 
 usage () {
     cat <<EOF 1>&2
 usage: $0 [options] [version]
-  publish the release candidate tars in the dist SVN. The tars need
-  to exist in the local 'dist' directory (created by make-tars.sh).
+  publish the release candidate tarballs in the dist SVN. The tars need
+  to exist in the local 'dist' directory (created by r1-make-tars.sh).
   If no version is given, the current version in the checkout is used.
   Arguments:
     version        as 'm.n.p(-suffix)?', the version to use.
@@ -29,8 +26,6 @@ EOF
   exit 1
 }
 
-source `dirname $0`/common-lib.sh
-
 while getopts "hy" opt; do
     case $opt in
         h)  usage
@@ -39,6 +34,7 @@ while getopts "hy" opt; do
             ;;
     esac
 done
+shift $((OPTIND-1))
 
 detect_checkout
 detect_version $1

Copied: httpd/dev-tools/release/r3-push-release-tars.sh (from r1893041, httpd/dev-tools/v2/release-candidate.sh)
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/r3-push-release-tars.sh?p2=httpd/dev-tools/release/r3-push-release-tars.sh&p1=httpd/dev-tools/v2/release-candidate.sh&r1=1893041&r2=1893043&rev=1893043&view=diff
==============================================================================
--- httpd/dev-tools/v2/release-candidate.sh (original)
+++ httpd/dev-tools/release/r3-push-release-tars.sh Tue Sep  7 14:08:45 2021
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-# Release a candidate that has passed voting
+# Stage a release candidate that has passed voting
 #
-# USAGE: release-candidate.sh [version]
+# USAGE: r3-push-release-tars.sh [version]
 # version: x.y.z (example 2.4.38)
 
 #Useful for debugging
@@ -11,8 +11,7 @@
 #Bail when non-zero return codes are encountered
 set -e
 
-#Make sure English is used when formating dates
-export LANG=en_US.UTF-8
+source `dirname $0`/common-lib.sh
 
 SVN_DIST_URL=https://dist.apache.org/repos/dist/
 
@@ -31,8 +30,6 @@ EOF
   exit 1
 }
 
-source `dirname $0`/common-lib.sh
-
 while getopts "hy" opt; do
     case $opt in
         h)  usage
@@ -41,6 +38,7 @@ while getopts "hy" opt; do
             ;;
     esac
 done
+shift $((OPTIND-1))
 
 detect_checkout
 detect_version $1

Added: httpd/dev-tools/release/r4-stage-release.sh
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/r4-stage-release.sh?rev=1893043&view=auto
==============================================================================
--- httpd/dev-tools/release/r4-stage-release.sh (added)
+++ httpd/dev-tools/release/r4-stage-release.sh Tue Sep  7 14:08:45 2021
@@ -0,0 +1,167 @@
+#!/bin/sh
+
+# Publish a staged release to the world
+#
+# USAGE: r4-stage-release.sh [version]
+# version: x.y.z (example 2.4.38)
+
+#Useful for debugging
+#set -x
+
+#Bail when non-zero return codes are encountered
+set -e
+
+source `dirname $0`/common-lib.sh
+
+SVN_DIST_URL=https://dist.apache.org/repos/dist/
+
+usage () {
+    cat <<EOF 1>&2
+usage: $0 [options] [version]
+  incorporate security related information to a staged release
+  and its source branch and let the world now.
+  The release tars need to exist at ${SVN_DIST_URL}/release/ (put there by stage-release.sh).
+  If no version is given, the current version in the checkout is used.
+  Arguments:
+    version        as 'm.n.p(-suffix)?', the version to use.
+  Options:
+    -h             print usage information
+    -n             dry run, do not commit any changes
+    -y             never ask, always assume yes
+EOF
+  exit 1
+}
+
+DRY_RUN=""
+while getopts "hny" opt; do
+    case $opt in
+        h)  usage
+            ;;
+        n)  DRY_RUN="1"
+            ;;
+        y)  ALWAYS_YES=1
+            ;;
+    esac
+done
+shift $((OPTIND-1))
+
+fail_not_dry() {
+  if test -z "${DRY_RUN}"; then
+    fail "$@"
+  fi
+  echo "IGNORED ERROR: $@"
+}
+
+fake_changes() {
+  changes="$1"
+  cat <<EOF > "${changes}"
+                                                         -*- coding: utf-8 -*-
+Changes with Apache ${VERSION}
+
+EOF
+}
+
+detect_checkout
+assure_clean_checkout
+
+detect_version $1
+# no matter how we are called, the release never has a suffix
+detect_version "${v_major}.${v_minor}.${v_patch}"
+
+PROJECT=`basename $SVN_BASE`
+SVN_RELEASE="tags/${VERSION}"
+
+svn ls "$SVN_BASE/$SVN_RELEASE" >/dev/null 2>&1 ||
+  fail_not_dry "release does not exist in SVN: $SVN_RELEASE"
+
+DIST_DIR="dist"
+
+TAR_BASENAME="${PROJECT}-${VERSION}"
+
+#Ensure scratch space is in a state we are ready to work with
+AO_DIST_PATH="dist/apache.org-dist"
+AO_DIST_RELEASE_PATH="${AO_DIST_PATH}/release/${PROJECT}"
+
+# SVN repository is huge, carefully check out only what we need
+rm -rf "${AO_DIST_PATH}"
+echo "checking out dist from ${SVN_DIST_URL} ..."
+svn checkout --depth=empty "$SVN_DIST_URL" "${AO_DIST_PATH}" >/dev/null
+echo "checking out ${AO_DIST_RELEASE_PATH} ..."
+svn update --set-depth immediates --parents "${AO_DIST_RELEASE_PATH}" >/dev/null
+
+if ! ls "${AO_DIST_RELEASE_PATH}/${TAR_BASENAME}".tar.* >/dev/null 2>&1; then
+  fail_not_dry "release tar not found: ${AO_DIST_RELEASE_PATH}/${TAR_BASENAME}.tar.*"
+fi
+if test ! -f "${AO_DIST_RELEASE_PATH}/CHANGES_${v_major}.${v_minor}"; then
+  fail_not_dry "${AO_DIST_RELEASE_PATH}/CHANGES_${v_major}.${v_minor} not found."
+  fake_changes "${AO_DIST_RELEASE_PATH}/CHANGES_${v_major}.${v_minor}"
+fi
+if test ! -f "${AO_DIST_RELEASE_PATH}/CHANGES_${VERSION}"; then
+  fail_not_dry "${AO_DIST_RELEASE_PATH}/CHANGES_${VERSION} not found."
+  fake_changes "${AO_DIST_RELEASE_PATH}/CHANGES_${VERSION}"
+fi
+
+echo "checking out pmc/${PROJECT} as ${DIST_DIR}/pmc"
+rm -rf "${DIST_DIR}/pmc"
+svn checkout https://svn.apache.org/repos/private/pmc/httpd "${DIST_DIR}/pmc" >/dev/null
+pushd "${DIST_DIR}/pmc/SECURITY" >/dev/null
+CVE_DIRS=`./tools/readiness.sh -n | fgrep '[OK]'| awk '{print $2}' | sort `
+popd >/dev/null
+
+cves_ok=1
+for CVE in $CVE_DIRS; do
+  if test -f "${DIST_DIR}/pmc/SECURITY/${CVE}/CHANGES"; then
+    echo "add ${DIST_DIR}/pmc/SECURITY/${CVE}/CHANGES"
+  elif test -f "${DIST_DIR}/pmc/SECURITY/${CVE}/CHANGES.diff"; then
+    echo "ERROR: cannot apply old-style diff in ${DIST_DIR}/pmc/SECURITY/${CVE}/CHANGES.diff." \
+      "Please convert this to a CHANGES files with just the text."
+    cves_ok=0
+  else
+    echo "ERROR: CVE ${CVE} does not have a CHANGES file."
+    cves_ok=0
+  fi
+done
+if test "${cves_ok}" != 1; then
+  fail "Please correct the files mentioned."
+fi
+
+# add the CVE CHANGES to all relevant files
+for changes in CHANGES \
+  "${AO_DIST_RELEASE_PATH}/CHANGES_${v_major}.${v_minor}" \
+  "${AO_DIST_RELEASE_PATH}/CHANGES_${VERSION}"; do
+  for CVE in $CVE_DIRS; do
+    add_changes_entry "$changes" "${DIST_DIR}/pmc/SECURITY/${CVE}/CHANGES"
+  done
+done
+
+echo "moving CVEs to pmc/resolved ..."
+for CVE in $CVE_DIRS; do
+  svn mv "${DIST_DIR}/pmc/SECURITY/${CVE}" "${DIST_DIR}/pmc/resolved/" >/dev/null
+done
+
+# Update the latest version pointer
+svn rm --force "${AO_DIST_RELEASE_PATH}/CURRENT-IS-${v_major}.${v_minor}"* >/dev/null
+touch "${AO_DIST_RELEASE_PATH}/CURRENT-IS-${VERSION}"
+svn add "${AO_DIST_RELEASE_PATH}/CURRENT-IS-${VERSION}" >/dev/null
+
+# step the patch level and update local files for the next version
+stage_checkout_release
+
+DIST_SITEPATH="${DIST_DIR}/site"
+stage_website_release "${DIST_SITEPATH}"
+
+
+echo
+echo "PENDING REPOSITORY CHANGES"
+echo "--------"
+echo "SVN changes staged for ${SVN_DIST_URL}"
+svn stat "${AO_DIST_RELEASE_PATH}"
+echo "--------"
+echo "SVN changes staged in pmc/${PROJECT}"
+svn stat "${DIST_DIR}/pmc"
+echo "--------"
+echo "SVN changes staged in ${DIST_SITEPATH}"
+svn stat "${DIST_SITEPATH}"
+echo "--------"
+echo "SVN changes staged in local checkout for ${SVN_URL}"
+svn stat

Propchange: httpd/dev-tools/release/r4-stage-release.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: httpd/dev-tools/release/r5-commit-staged-release.sh
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/r5-commit-staged-release.sh?rev=1893043&view=auto
==============================================================================
--- httpd/dev-tools/release/r5-commit-staged-release.sh (added)
+++ httpd/dev-tools/release/r5-commit-staged-release.sh Tue Sep  7 14:08:45 2021
@@ -0,0 +1,61 @@
+#!/bin/sh
+
+# Commit staged release changes to various SVN repositories and the
+# project website
+
+#Useful for debugging
+#set -x
+
+#Bail when non-zero return codes are encountered
+set -e
+
+source `dirname $0`/common-lib.sh
+
+SVN_DIST_URL=https://dist.apache.org/repos/dist/
+
+usage () {
+    cat <<EOF 1>&2
+usage: $0 [options] [version]
+  Commit staged release changes to project distribution, source repositories
+  and web site.
+  Arguments:
+    version        as 'm.n.p(-suffix)?', the version to use.
+  Options:
+    -h             print usage information
+    -y             never ask, always assume yes
+EOF
+  exit 1
+}
+
+while getopts "hy" opt; do
+    case $opt in
+        h)  usage
+            ;;
+        y)  ALWAYS_YES=1
+            ;;
+    esac
+done
+shift $((OPTIND-1))
+
+
+detect_checkout
+detect_version $1
+# no matter how we are called, the release never has a suffix
+detect_version "${v_major}.${v_minor}.${v_patch}"
+
+# TBD
+fail "not implemented yet"
+
+#Publish the site updates
+TMP_KEY=`curl -s -u "$asf_id" --url https://cms.apache.org/httpd/publish | grep key | cut -d '"' -f 6`
+if test -z "$TMP_KEY";then
+  echo "There was an error getting a key to publish the website."
+  echo "Visit https://cms.apache.org/httpd/publish to do this manually."
+  exit 1
+fi
+
+curl --url https://cms.apache.org/httpd/publish \
+  -X POST \
+  -u "$asf_id" \
+  -H 'Content-Type: application/x-www-form-urlencoded' \
+  -d "key=$TMP_KEY&message=Publish%20${VERSION}%20updates&source_url=https%3A%2F%2Fsvn.apache.org%2Frepos%2Fasf%2F${PROJECT}%2Fsite&submit=Submit&referer="

Propchange: httpd/dev-tools/release/r5-commit-staged-release.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: httpd/dev-tools/release/r6-announce.sh
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/r6-announce.sh?rev=1893043&view=auto
==============================================================================
--- httpd/dev-tools/release/r6-announce.sh (added)
+++ httpd/dev-tools/release/r6-announce.sh Tue Sep  7 14:08:45 2021
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+# Announce a committed release to the world
+
+#Useful for debugging
+#set -x
+
+#Bail when non-zero return codes are encountered
+set -e
+
+source `dirname $0`/common-lib.sh
+
+SVN_DIST_URL=https://dist.apache.org/repos/dist/
+
+usage () {
+    cat <<EOF 1>&2
+usage: $0 [options] [version]
+  Announce a committed release to the world.
+  Arguments:
+    version        as 'm.n.p(-suffix)?', the version to use.
+  Options:
+    -h             print usage information
+EOF
+  exit 1
+}
+
+while getopts "h" opt; do
+    case $opt in
+        h)  usage
+            ;;
+        y)  ALWAYS_YES=1
+            ;;
+    esac
+done
+shift $((OPTIND-1))
+
+
+detect_checkout
+detect_version $1
+# no matter how we are called, the release never has a suffix
+detect_version "${v_major}.${v_minor}.${v_patch}"
+
+# TBD
+fail "not implemented yet"

Propchange: httpd/dev-tools/release/r6-announce.sh
------------------------------------------------------------------------------
    svn:executable = *

Modified: httpd/dev-tools/release/reset-candidate.sh
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/reset-candidate.sh?rev=1893043&r1=1893042&r2=1893043&view=diff
==============================================================================
--- httpd/dev-tools/release/reset-candidate.sh (original)
+++ httpd/dev-tools/release/reset-candidate.sh Tue Sep  7 14:08:45 2021
@@ -41,6 +41,7 @@ while getopts "hy" opt; do
             ;;
     esac
 done
+shift $((OPTIND-1))
 
 detect_checkout
 detect_version $1