From 22cf7bace8f4d0dc9f0bfd74bbe4b76ff1013c2a Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 1 Nov 2021 17:53:01 +0100 Subject: [PATCH] [resources] Rename get-contributors.sh to generate-notice-file --- resources/generate-notice-file | 38 ++++++++++++++++++++++++++++++++++ resources/get-contributors.sh | 7 ------- 2 files changed, 38 insertions(+), 7 deletions(-) create mode 100755 resources/generate-notice-file delete mode 100755 resources/get-contributors.sh diff --git a/resources/generate-notice-file b/resources/generate-notice-file new file mode 100755 index 000000000..60c66bbce --- /dev/null +++ b/resources/generate-notice-file @@ -0,0 +1,38 @@ +#!/usr/bin/env bash +set -euo pipefail + +SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +SMACK_DIR=$(realpath "${SCRIPT_DIR}/..") + +cd "${SMACK_DIR}" + +TEMPFILE=$(mktemp) + +cleanup() { + rm "${TEMPFILE}" +} +trap cleanup EXIT + +git shortlog -s |\ + cut -f2- |\ + grep -v '(no author)' |\ + grep '\w \w.*' |\ + sort \ + > "${TEMPFILE}" + +readonly NOTICE_FILE="${SMACK_DIR}/NOTICE" + +cat < "${NOTICE_FILE}" + Smack + + An open-source XMPP library + maintained by Florian Schmaus + + https://igniterealtime.org/projects/smack + + +Authors: + +EOF + +cat "${TEMPFILE}" >> "${NOTICE_FILE}" diff --git a/resources/get-contributors.sh b/resources/get-contributors.sh deleted file mode 100755 index c31236464..000000000 --- a/resources/get-contributors.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -git shortlog -s |\ - cut -f2- |\ - grep -v '(no author)' |\ - grep '\w \w.*' |\ - sort