From 7d0c7966a095c291612d399b800d34e096d19bed Mon Sep 17 00:00:00 2001 From: cpovirk Date: Tue, 30 May 2023 12:05:19 -0700 Subject: [PATCH] Remove old release script. RELNOTES=n/a PiperOrigin-RevId: 536470979 --- util/mvn-deploy.sh | 53 ---------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 util/mvn-deploy.sh diff --git a/util/mvn-deploy.sh b/util/mvn-deploy.sh deleted file mode 100755 index 2c27eab2e..000000000 --- a/util/mvn-deploy.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -keys="$(gpg --list-keys | grep ^pub | sed 's#/# #' | awk '{ print $3 }')" -key_count="$(echo ${keys} | wc -w)" - -seen="" -while [[ $# > 0 ]] ; do - param="$1" - if [[ $param == "--signing-key" ]]; then - # disambiguating or overriding key - key="$2" - shift - else - seen="${seen} ${param}" - fi - shift -done -params=${seen} - -if [[ ${key_count} -lt 1 ]]; then - echo "" - echo "You are attempting to deploy a maven release without a GPG signing key." - echo "You need to generate a signing key in accordance with the instructions" - echo "found at http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven" - exit 1 -fi - -# if a key is specified, use that, else use the default, unless there are many -if [[ -n "${key}" ]]; then - #validate key - keystatus=$(gpg --list-keys | grep ${key} | awk '{print $1}') - if [ "${keystatus}" != "pub" ]; then - echo "" - echo "Could not find public key with label \"${key}\"" - echo "" - echo "Available keys from: " - gpg --list-keys | grep --invert-match '^sub' - exit 1 - fi - - key_param="-Dgpg.keyname=${key}" -elif [ ${key_count} -gt 1 ]; then - echo "" - echo "You are attempting to deploy a maven release but have more than one GPG" - echo "signing key and did not specify which one you wish to sign with." - echo "" - echo "usage $0 [--signing-key ] [ ...]" - echo "" - echo -n "Available keys from: " - gpg --list-keys | grep --invert-match '^sub' - exit 1; -fi - -mvn ${params} clean site:jar -P sonatype-oss-release -Drelease ${key_param} deploy