You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2024/07/02 14:00:00 UTC
svn commit: r1918849 - /httpd/dev-tools/release/justsign.sh
Author: covener
Date: Tue Jul 2 14:00:00 2024
New Revision: 1918849
URL: http://svn.apache.org/viewvc?rev=1918849&view=rev
Log:
just sign
Added:
httpd/dev-tools/release/justsign.sh (with props)
Added: httpd/dev-tools/release/justsign.sh
URL: http://svn.apache.org/viewvc/httpd/dev-tools/release/justsign.sh?rev=1918849&view=auto
==============================================================================
--- httpd/dev-tools/release/justsign.sh (added)
+++ httpd/dev-tools/release/justsign.sh Tue Jul 2 14:00:00 2024
@@ -0,0 +1,74 @@
+#!/bin/sh
+
+# Just sign the artifacts, extracted from r1-make-tars.sh.
+# They need to be moved from dist/ to e.g. dist/apache.org-dist/dev/httpd/ to be committed.
+
+#Useful for debugging
+#set -x
+
+#Bail when non-zero return codes are encountered
+set -e
+
+usage () {
+ cat <<EOF 1>&2
+usage: $0 [options] [version]
+ create the release tars from a SVN candidate. The candidate is expected
+ to be found in SVN at 'tags/$version-candidate', as prepared by the
+ 'make-candidate.sh' script.
+ 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
+ -s sign-user use gpg/pgp key from 'sign-user'
+EOF
+ exit 1
+}
+
+signing_user=
+while getopts "hs" opt; do
+ case $opt in
+ h) usage
+ ;;
+ s) signing_user="$OPTARG"
+ ;;
+ esac
+done
+shift $((OPTIND-1))
+
+source `dirname $0`/common-lib.sh
+source `dirname $0`/env.sh
+
+detect_checkout
+detect_version $1
+
+SVN_DEST="tags/${FULL_VERSION}-candidate"
+
+cat <<EOF
+creating release tars:
+ PROJECT: $PROJECT
+ VERSION: $FULL_VERSION
+ CANDIDATE: $SVN_BASE/$SVN_DEST
+ LOCAL: $DIST_DIR
+EOF
+
+EXP_DIRNAME="${PROJECT}-${VERSION}"
+EXP_PATH="${DIST_DIR}/${EXP_DIRNAME}"
+# almost the same, except using the full version string
+TAR_BASENAME="${PROJECT}-${FULL_VERSION}"
+TAR_PATH="${DIST_DIR}/${TAR_BASENAME}"
+
+SVN_DIST_URL="https://dist.apache.org/repos/dist/release/httpd"
+SVN_DIST_KEYS=KEYS
+
+svn ls "$SVN_BASE/$SVN_DEST" >/dev/null 2>&1 ||
+ fail "release candidate does not exist in SVN: $SVN_DEST"
+
+test -d "$DIST_DIR" || mkdir -p "$DIST_DIR"
+
+build_checksums=1 # create checksum files for tarballs
+
+if test -n "$SVN_DIST_KEYS"; then
+ echo " - signing dist files ..."
+ sign_dist_files "${signing_user}" "${TAR_PATH}"*.tar.gz "${TAR_PATH}"*.tar.bz2
+fi
Propchange: httpd/dev-tools/release/justsign.sh
------------------------------------------------------------------------------
svn:executable = *