x11/xfce4/xfce4-dev-tools: improve release scripts portability
backports https://gitlab.xfce.org/xfce/xfce4-dev-tools/-/merge_requests/54
This commit is contained in:
parent
e1343d2729
commit
8651f3a579
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.22 2021/03/23 10:26:19 landry Exp $
|
||||
# $OpenBSD: Makefile,v 1.23 2021/05/31 05:12:34 landry Exp $
|
||||
|
||||
COMMENT = Xfce4 developer tools and macros
|
||||
|
||||
XFCE_PROJECT = xfce4-dev-tools
|
||||
REVISION = 1
|
||||
REVISION = 2
|
||||
HOMEPAGE = https://docs.xfce.org/xfce/xfce4-dev-tools/start
|
||||
|
||||
# GPLv2
|
||||
|
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-helpers_xfce-do-release,v 1.1 2021/05/31 05:12:34 landry Exp $
|
||||
|
||||
Index: helpers/xfce-do-release
|
||||
--- helpers/xfce-do-release.orig
|
||||
+++ helpers/xfce-do-release
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/usr/bin/env bash
|
||||
|
||||
component=$1
|
||||
version=$2
|
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-helpers_xfce-get-release-notes,v 1.1 2021/05/31 05:12:34 landry Exp $
|
||||
|
||||
Index: helpers/xfce-get-release-notes
|
||||
--- helpers/xfce-get-release-notes.orig
|
||||
+++ helpers/xfce-get-release-notes
|
||||
@@ -19,6 +19,6 @@ git log --format=%s ${LAST_TAG}..HEAD | \
|
||||
grep -v "Back to development" | \
|
||||
while read line; do \
|
||||
echo "- $line" | \
|
||||
- fold -s -w $LINE_LENGTH - | \
|
||||
+ fold -s -w $LINE_LENGTH | \
|
||||
sed -e "s/^[^ ]/&/g"
|
||||
done
|
@ -0,0 +1,29 @@
|
||||
$OpenBSD: patch-helpers_xfce-get-translations,v 1.1 2021/05/31 05:12:34 landry Exp $
|
||||
|
||||
Index: helpers/xfce-get-translations
|
||||
--- helpers/xfce-get-translations.orig
|
||||
+++ helpers/xfce-get-translations
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/usr/bin/env bash
|
||||
|
||||
# Just a small script to get all language updates to a repository since a
|
||||
# commit or tag.
|
||||
@@ -28,7 +28,7 @@ printf '%s\n' '- Translation Updates:'
|
||||
|
||||
LANGUAGES=$(
|
||||
for l in $UPDATES; do
|
||||
- echo -n "$(grep '^"Language-Team:' po/$l.po | grep -Po '(?<=: ).*' | grep -Po '^(.*)(?= \(http)')"
|
||||
+ echo -n "$(grep '^"Language-Team:' po/$l.po | sed -e 's/.*: //; s/ (http//;')"
|
||||
echo ","
|
||||
done
|
||||
)
|
||||
@@ -37,7 +37,7 @@ SORTED=$(echo "$LANGUAGES" | sort)
|
||||
SORTED=${SORTED::-1} # remove last comma
|
||||
while read line; do
|
||||
echo -n "$line "
|
||||
-done <<< "$SORTED" | fold -s -w $LINE_LENGTH - | sed -e "s/^[^ ]/${INDENT}&/g" | sed -e 's/[[:space:]]*$//'
|
||||
+done <<< "$SORTED" | fold -s -w $LINE_LENGTH | sed -e "s/^[^ ]/${INDENT}&/g" | sed -e 's/[[:space:]]*$//'
|
||||
echo ""
|
||||
|
||||
if [ "$SILENT" != "silent" ]; then
|
Loading…
x
Reference in New Issue
Block a user