From ec955b99eceb286356d78fc6334770dce6b2d79d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Wed, 2 Apr 2008 13:52:01 +0000 Subject: [PATCH] Move intl_stats.sh script to scripts directory and make it working from top source directory. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2438 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 3 +++ {po => scripts}/intl_stats.sh | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) rename {po => scripts}/intl_stats.sh (88%) diff --git a/ChangeLog b/ChangeLog index e4c23ed9..7fbfcd8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ * src/callbacks.c, src/main.h, src/project.c: Ignore notebook_switch_page signal handler when closing projects to speed it up a little bit with many session files. + * po/intl_stats.sh, scripts/intl_stats.sh: + Move intl_stats.sh script to scripts directory and make it working + from top source directory. 2008-04-01 Nick Treleaven diff --git a/po/intl_stats.sh b/scripts/intl_stats.sh similarity index 88% rename from po/intl_stats.sh rename to scripts/intl_stats.sh index 1142303c..bfb3505a 100755 --- a/po/intl_stats.sh +++ b/scripts/intl_stats.sh @@ -69,7 +69,7 @@ done # if no languages where specified on the command line, take all listed languages in LINGUAS if [ -z "$linguas" ] then - linguas=`sed -e '/^#/d' LINGUAS` + linguas=`sed -e '/^#/d' po/LINGUAS` fi # dash and zsh don't need the -e switch to echo, bash does @@ -85,15 +85,15 @@ if [ $check_accelerators ] then for lang in $linguas do - msgfmt --check --statistics $check_accelerators $lang.po; + msgfmt --check --statistics $check_accelerators po/$lang.po; done else for lang in $linguas do # maybe the regexp can be optimized, regexps are not my best friends - creationdate=`grep "PO-Revision-Date:" $lang.po | sed 's/.*: \([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}[+|-][0-9]\{4\}\).*/\1/'` + creationdate=`grep "PO-Revision-Date:" po/$lang.po | sed 's/.*: \([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} [0-9]\{2\}:[0-9]\{2\}[+|-][0-9]\{4\}\).*/\1/'` echo -n $eswitch $lang"\t("$creationdate"):\t" - msgfmt --check --statistics $lang.po; + msgfmt --check --statistics po/$lang.po; done fi