From fd74ecaa953401c17061bfeab6134d068b6a10c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Fri, 29 Jan 2021 20:05:07 +0000 Subject: [PATCH] Remove scripty. --- applysed | 10 +++++----- checkout | 4 ---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/applysed b/applysed index 7d83421..240d076 100755 --- a/applysed +++ b/applysed @@ -20,10 +20,10 @@ # ths-applysed.sh - apply a sed script to the whole project (the sed commands # have to be supplied in an external file). -source "`dirname $0`/ths-variables" +source "$(dirname "$0")/ths-variables" function usage() { - echo "Usage: `basename $0` " + echo "Usage: $(basename "$0") " echo echo "Example of the replacements file content:" echo "s/bylai/failui/g" @@ -36,7 +36,7 @@ if [ $# -ne 2 ]; then usage fi -for po in `find -L $2 -name "*.po"`; do - echo -e $BLUE"$po"$ENDCOLOR - sed --file=$1 -i $po +for po in $(find -L "$2" -name "*.po"); do + echo -e "$BLUE$po$ENDCOLOR" + sed --file="$1" -i "$po" done diff --git a/checkout b/checkout index f984df0..629f891 100755 --- a/checkout +++ b/checkout @@ -39,18 +39,14 @@ if [ ! -f ".ths" ]; then if [ "$svnwrite" = "y" ]; then cd trunk-kf5 svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf5/templates - svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf5/scripts svn co svn+ssh://svn@svn.kde.org/home/kde/trunk/l10n-kf5/$lcode cd ../stable-kf5 svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf5/templates - svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf5/scripts svn co svn+ssh://svn@svn.kde.org/home/kde/branches/stable/l10n-kf5/$lcode else svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/templates - svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/scripts svn co svn://anonsvn.kde.org/home/kde/trunk/l10n-kf5/$lcode svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/templates - svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/scripts svn co svn://anonsvn.kde.org/home/kde/branches/stable/l10n-kf5/$lcode fi else