Mercurial > geeqie
annotate gen_changelog.sh @ 1534:163e3efc1c02
Fix the broken statistic generation
The output of msgfmt has different format if no fuzzy translations (or
even no translated) are available. I fixed that by parsing the output of
msgfmt more intelligent.
Drawback of the solution is that the parsing will not work if the output
of msgfmt use not the strings "translated messages", "fuzzy
translations" and "untranslated messages".
author | mow |
---|---|
date | Fri, 10 Apr 2009 10:18:42 +0000 |
parents | 0c918f8b1f51 |
children |
rev | line source |
---|---|
1290
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
1 #!/bin/bash |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
2 |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
3 # Script to update ChangeLog file, |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
4 # it keeps "pre-svn" history and insert svn log at top, |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
5 # it uses C locale for date format. |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
6 # It has to be run where ChangeLog is. |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
7 # Old ChangeLog is saved as ChangeLog.bak |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
8 |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
9 [ ! -e "ChangeLog" ] && exit 1 |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
10 |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
11 tail -6614 ChangeLog > ChangeLog.$$.old && \ |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
12 LC_ALL=C svn log -rHEAD:220 > ChangeLog.$$.new && \ |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
13 cat ChangeLog.$$.old >> ChangeLog.$$.new && \ |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
14 mv -f ChangeLog ChangeLog.bak && \ |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
15 mv -f ChangeLog.$$.new ChangeLog |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
16 |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
17 rm -f ChangeLog.$$.old |
0c918f8b1f51
Update ChangeLog using C locale date format, add a script to ease future updates.
zas_
parents:
diff
changeset
|
18 exit 0 |