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