INNER CODE UNIT · Java

GPG_TTY

apache/bifromq · release/release.sh:115

export GPG_TTY=${GPG_TTY:-$(tty)}
gpg --list-secret-keys --with-colons | grep -q '^sec' || { echo "ERROR: No GPG secret key found for signing."; exit 1; }
verify_gpg_access

echo "Cloning repository to temp dir..."
cd "$TMPDIR"
git clone https://github.com/apache/${PROJECT_NAME}.git repo
cd repo
git checkout "$BRANCH"

echo "Reading revision from POM..."
REVISION=$(xmllint --xpath "string(//*[local-name()='project']/*[local-name()='properties']/*[local-name()='revision'])" pom.xml)
if [[ -z "$REVISION" ]]; then
  echo "ERROR: Cannot read revision from pom.xml"
  exit 1
fi

TAG="v${REVISION}"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…