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
This commit is contained in:
Enrico Tröger 2008-04-02 13:52:01 +00:00
parent 9602b91e0f
commit ec955b99ec
2 changed files with 7 additions and 4 deletions

View File

@ -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 <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -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