diff --git a/helpers/xfce-do-release b/helpers/xfce-do-release index c1f6794e5980ba7f76ca70b83fc7d779b5d663bf..0e32d5c278cf3072b99f2ebf2cdcc3138c76c19e 100755 --- a/helpers/xfce-do-release +++ b/helpers/xfce-do-release @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash component=$1 version=$2 diff --git a/helpers/xfce-get-release-notes b/helpers/xfce-get-release-notes index d37f65f03a9bdc2a6f63b2fce0081093e1d0a3f9..7cc0c8f135f9538c25a0108b1623db82fb692ecb 100755 --- a/helpers/xfce-get-release-notes +++ b/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 diff --git a/helpers/xfce-get-translations b/helpers/xfce-get-translations index 4891b099ed0870856c1cfa7cc73d6fbe5a739452..9bec2c3e2ae2c3816cbd012961ba352410474582 100755 --- a/helpers/xfce-get-translations +++ b/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