From b008274afdbe375b32a7e66dbd073e200f6f0587 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 4 Feb 2011 12:57:53 +0100 Subject: Nuked almost all trailing white space. We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again. --- scripts/ChangeLog | 1 - scripts/potomo | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/ChangeLog b/scripts/ChangeLog index dacea163a..9b536bf61 100644 --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -36,4 +36,3 @@ This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - diff --git a/scripts/potomo b/scripts/potomo index 20617288e..b4c0a6b5c 100755 --- a/scripts/potomo +++ b/scripts/potomo @@ -43,18 +43,18 @@ if [ "$outfile" -nt "$infile" ]; then echo "potomo: '$outfile' is newer than source - keeping" 2>&1 exit 0 fi - + # Note that we could use the newer msgconv. However this tool was not # widely available back in 2008. fromset=`sed -n '/^"Content-Type:/ s/.*charset=\([a-zA-Z0-9_-]*\).*/\1/p' \ "$infile"` -case "$fromset" in - utf8|utf-8|UTF8|UTF-8) - echo "potomo: '$infile' keeping $fromset" >&2 +case "$fromset" in + utf8|utf-8|UTF8|UTF-8) + echo "potomo: '$infile' keeping $fromset" >&2 msgfmt --output-file="$outfile" "$infile" - ;; + ;; *) echo "potomo: '$infile' converting from $fromset to utf-8" >&2 iconv --silent --from-code=$fromset --to-code=utf-8 < "$infile" |\ -- cgit v1.2.3