diff --git a/tools/packaging/release/release-notes.sh b/tools/packaging/release/release-notes.sh deleted file mode 100755 index 078fd53980..0000000000 --- a/tools/packaging/release/release-notes.sh +++ /dev/null @@ -1,224 +0,0 @@ -#!/usr/bin/env bash -# Copyright (c) 2018 Intel Corporation -# -# SPDX-License-Identifier: Apache-2.0 -# - -[ -z "${DEBUG}" ] || set -x -set -o errexit -set -o nounset -set -o pipefail - -script_dir=$(dirname "$0") - -readonly script_name="$(basename "${BASH_SOURCE[0]}")" -readonly script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -readonly project="kata-containers" -readonly tmp_dir=$(mktemp -d -t release-notes-tmp.XXXXXXXXXX) - -# shellcheck source=../scripts/lib.sh -source "${script_dir}/../scripts/lib.sh" - -exit_handler() { - [ -d "${tmp_dir}" ] || rm -rf "${tmp_dir}" -} -trap exit_handler EXIT - -usage() { - return_code=${1:-} - cat < - -Args: - -previous-release: will be used as start point to get release notes -new-release: new release version that will have the - -Example: -./${script_name} 1.2.0 1.2.1 > notes.md - -EOF - exit "${return_code}" -} - -repos=( - "kata-containers" -) - -get_release_info() { - - docker_version=$(get_from_kata_deps "externals.docker.version") - crio_version=$(get_from_kata_deps "externals.crio.version") - containerd_version=$(get_from_kata_deps "externals.containerd.version") - kubernetes_version=$(get_from_kata_deps "externals.kubernetes.version") - oci_spec_version=$(get_from_kata_deps "specs.oci.version") - - libseccomp_version=$(get_from_kata_deps "externals.libseccomp.version") - libseccomp_url=$(get_from_kata_deps "externals.libseccomp.url") - - #Image information - image_info=$(get_from_kata_deps "assets.image") - - # Initrd information - initrd_info=$(get_from_kata_deps "assets.initrd") - - kernel_version=$(get_from_kata_deps "assets.kernel.version") - kernel_url=$(get_from_kata_deps "assets.kernel.url") - - kata_kernel_config_version="${new_release}-kernel-config" - kata_kernel_config_version="${new_release}-kernel-config" - - runtime_version=${new_release} -} - -changes() { - echo "**FIXME - message this section by hand to produce a summary please**" - - echo "### Shortlog" - - echo "
" - echo "Click the icon to show the list of commits included in this release" - - # XXX: Essential to have at least one blank line here. It forces - # GitHub to show each commit on a separate line. - echo - - for cr in $(git log --merges "${previous_release}".."${new_release}" | grep 'Merge:' | awk '{print $2".."$3}'); do - git log --oneline "$cr" - done - - echo "
" -} - -print_release_notes() { - cat <>/dev/null - - cat <>/dev/null - rm -rf "${tmp_dir}/${repo}" - done - - cat <> /tmp/our_notes_${RELEASE_VERSION} <