diff options
author | Michal Čihař <michal@cihar.com> | 2014-03-20 12:36:48 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2014-03-20 12:36:48 +0400 |
commit | d559fa6a2164870f0db0c92b3c60d8b5dda3c3d2 (patch) | |
tree | a654abe4aa6910b46bb98f7740ad1a4dfffea352 /scripts | |
parent | 582077e8db25d9e80fd9e35a9a1d1d7d9bc1b175 (diff) |
Remove trailing whitespace from the code
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/generate-mo | 2 | ||||
-rwxr-xr-x | scripts/locales-contributors | 2 | ||||
-rwxr-xr-x | scripts/remove-incomplete-mo | 22 |
3 files changed, 13 insertions, 13 deletions
diff --git a/scripts/generate-mo b/scripts/generate-mo index d8c8ab2245..7ac521b278 100755 --- a/scripts/generate-mo +++ b/scripts/generate-mo @@ -20,6 +20,6 @@ if [ ! -z "$1" ] ; then exit 0 fi -for x in po/*.po ; do +for x in po/*.po ; do compile $x done diff --git a/scripts/locales-contributors b/scripts/locales-contributors index 8bdfc70587..021eca3659 100755 --- a/scripts/locales-contributors +++ b/scripts/locales-contributors @@ -1,5 +1,5 @@ #!/bin/sh -for x in po/*.po ; do +for x in po/*.po ; do grep 'Team' $x | sed 's/.*: \(.*\)<.*/\1/' git shortlog -sne --no-merges -- $x | grep '^ [ 0-9][0-9]\{3\}' done diff --git a/scripts/remove-incomplete-mo b/scripts/remove-incomplete-mo index ec7d3b3dd3..8d703452fc 100755 --- a/scripts/remove-incomplete-mo +++ b/scripts/remove-incomplete-mo @@ -20,11 +20,11 @@ if [ ! -z "$1" ] ; then THRESHOLD=$1 fi -echo '<?php' > $TMPOUTPUTFILE -echo '/* Automatically generated file, do not edit! */' >> $TMPOUTPUTFILE -echo '/* Generated by scripts/remove-incomplete-mo */' >> $TMPOUTPUTFILE -echo '' >> $TMPOUTPUTFILE -echo '$GLOBALS["language_stats"] = array (' >> $TMPOUTPUTFILE +echo '<?php' > $TMPOUTPUTFILE +echo '/* Automatically generated file, do not edit! */' >> $TMPOUTPUTFILE +echo '/* Generated by scripts/remove-incomplete-mo */' >> $TMPOUTPUTFILE +echo '' >> $TMPOUTPUTFILE +echo '$GLOBALS["language_stats"] = array (' >> $TMPOUTPUTFILE check() { TMPOUTPUTFILE=$2 @@ -46,21 +46,21 @@ check() { UNTRANSLATED=0 fi PERCENT=`expr 100 \* $TRANSLATED / \( $TRANSLATED + $FUZZY + $UNTRANSLATED \) || true` - echo " '$lang' => $PERCENT," >> $TMPOUTPUTFILE + echo " '$lang' => $PERCENT," >> $TMPOUTPUTFILE if [ $PERCENT -lt $THRESHOLD ] ; then echo "Removing $lang, only $PERCENT%" - rm -f locale/$lang/LC_MESSAGES/phpmyadmin.mo + rm -f locale/$lang/LC_MESSAGES/phpmyadmin.mo rmdir locale/$lang/LC_MESSAGES rmdir locale/$lang fi } -for x in po/*.po ; do +for x in po/*.po ; do check $x $TMPOUTPUTFILE done -echo ');' >> $TMPOUTPUTFILE -echo '?>' >> $TMPOUTPUTFILE +echo ');' >> $TMPOUTPUTFILE +echo '?>' >> $TMPOUTPUTFILE -mv $TMPOUTPUTFILE $OUTPUTFILE +mv $TMPOUTPUTFILE $OUTPUTFILE |