release: Introduce the release.sh helper

For now this script does nothing, but we're introducing it in order to
redduce the diffs for the next commits in this series.

My intention is to have as much as possible related to the release as
part of this helper script, and it'll be populated function by function
while replacing content that's "hard coded" (and duplicated) on
different GitHub actions.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2024-02-23 17:20:04 +01:00
parent 1a6c378d26
commit fb2ef32c04
No known key found for this signature in database
GPG Key ID: EE926C2BDACC177B

View File

@ -0,0 +1,39 @@
#!/usr/bin/env bash
#
# Copyright (c) 2024 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
set -o errexit
set -o nounset
set -o pipefail
set -o errtrace
[ -n "${DEBUG:-}" ] && set -o xtrace
this_script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
repo_root_dir="$(cd "$this_script_dir/../../../" && pwd)"
function _die()
{
echo >&2 "ERROR: $*"
exit 1
}
function _info()
{
echo "INFO: $*"
}
function main()
{
action="${1:-}"
_info "DO NOT USE this script, it does nothing!"
case "${action}" in
*) >&2 _die "Invalid argument" ;;
esac
}
main "$@"