vagrant/scripts/sign.sh
oss-core-libraries-dashboard[bot] 1a8c7eb042
[COMPLIANCE] Update Copyright and License Headers (Batch 4 of 7) (#13762)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
2025-12-22 16:46:54 +05:30

29 lines
695 B
Bash
Executable file

#!/bin/bash
# Copyright IBM Corp. 2010, 2025
# SPDX-License-Identifier: BUSL-1.1
set -e
# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that dir because we expect that
cd $DIR
# Get the version from the command line
VERSION=$1
if [ -z $VERSION ]; then
echo "Please specify a version."
exit 1
fi
# Make the checksums
pushd ./pkg/dist
shasum -a256 * > ./vagrant_${VERSION}_SHA256SUMS
# if [ -z $NOSIGN ]; then
# echo "==> Signing..."
# gpg --default-key 348FFC4C --detach-sig ./vagrant_${VERSION}_SHA256SUMS
# fi
popd