[gnome-disk-utility] release helper: improve the behavior when run after a release
- From: Kai Lüke <kailueke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] release helper: improve the behavior when run after a release
- Date: Fri, 18 Mar 2022 20:20:54 +0000 (UTC)
commit dbb1c5010dc5759393f97a0193ac5135eb43ac9b
Author: Kai Lüke <kailueke riseup net>
Date: Fri Mar 18 21:19:57 2022 +0100
release helper: improve the behavior when run after a release
release | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/release b/release
index 59245080..5c6d5255 100755
--- a/release
+++ b/release
@@ -34,6 +34,10 @@ fi
REMOTE=$(git remote -v | grep "ssh://git gitlab gnome org" | grep -m 1 push | cut -f 1)
LAST_TAG=$(git describe --tags --abbrev=0)
+if [ "${LAST_TAG}" = "${ARG}" ]; then
+ echo "Last tag is ${ARG}"
+ exit 1
+fi
{
DATE=$(LC_ALL=C date '+%B %d, %Y')
@@ -41,13 +45,15 @@ LAST_TAG=$(git describe --tags --abbrev=0)
echo "${HEADER}"
echo "${HEADER}" | tr '[:print:]' '='
echo
- git shortlog "${LAST_TAG}..HEAD" -- ':!po/*.po' | sed 's/ ([0-9]*):$/:/' | sed 's/^ [ ]*/ \* /'
- echo "Updated translations:"
- {
- echo -n ' * '
- git log "${LAST_TAG}..HEAD" --pretty=format:%an --name-only -- po/*.po | sed -e :a -e
'$!N;s|\npo/\(.*\)\.po| \(\1\)|;ta' | sort -u | sed '$!N;s/^\n//' | python3 -c 'print(",
".join(open("/dev/stdin").read().strip().split("\n")))'
- } | fold -s -w 75 | sed -e '2,$s/^/ /' | sed -e 's/[[:space:]]*$//'
- echo
+ git shortlog "${LAST_TAG}..HEAD" -- ':!po/*.po' ':!release' | sed 's/ ([0-9]*):$/:/' | sed 's/^ [ ]*/ \* /'
+ if [ "$(git log "${LAST_TAG}..HEAD" -- po/*.po)" != "" ]; then
+ echo "Updated translations:"
+ {
+ echo -n ' * '
+ git log "${LAST_TAG}..HEAD" --pretty=format:%an --name-only -- po/*.po | sed -e :a -e
'$!N;s|\npo/\(.*\)\.po| \(\1\)|;ta' | sort -u | sed '$!N;s/^\n//' | python3 -c 'print(",
".join(open("/dev/stdin").read().strip().split("\n")))'
+ } | fold -s -w 75 | sed -e '2,$s/^/ /' | sed -e 's/[[:space:]]*$//'
+ echo
+ fi
} | {
if [ "${DRY}" = "0" ]; then
cat - NEWS | sponge NEWS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]