[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trans-coord/gnun/server/gnun gnun-diff-po.in di...
From: |
Pavel Kharitonov |
Subject: |
trans-coord/gnun/server/gnun gnun-diff-po.in di... |
Date: |
Thu, 04 Apr 2013 05:10:51 +0000 |
CVSROOT: /sources/trans-coord
Module name: trans-coord
Changes by: Pavel Kharitonov <ineiev> 13/04/04 05:10:50
Modified files:
gnun/server/gnun: gnun-diff-po.in diff-po.awk.in ChangeLog NEWS
gnun/server/gnun/doc: gnun.texi
Log message:
New option in `gnun-diff-po' not to output strings that don't differ:
`--no-common'.
* gnun-diff-po.in: Accept the `--no-common' option, pass the result
to `diff-po.awk'.
* diff-po.awk.in: Respect the `no_common' variable.
* NEWS: Update.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/gnun-diff-po.in?cvsroot=trans-coord&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/diff-po.awk.in?cvsroot=trans-coord&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.368&r2=1.369
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/NEWS?cvsroot=trans-coord&r1=1.85&r2=1.86
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/doc/gnun.texi?cvsroot=trans-coord&r1=1.86&r2=1.87
Patches:
Index: gnun-diff-po.in
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/gnun-diff-po.in,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- gnun-diff-po.in 1 Apr 2013 06:27:50 -0000 1.7
+++ gnun-diff-po.in 4 Apr 2013 05:10:50 -0000 1.8
@@ -38,6 +38,7 @@
against PO_FILE1 when their sets differ
-2, --merge-against-second Adjust the original strings of PO_FILE1
against PO_FILE2 when their sets differ
+ --no-common Don't output strings that don't differ.
--title=TITLE Specify the title for the HTML page
--version Display version info and exit
--help Display this help and exit
@@ -57,6 +58,7 @@
title=""
merge_against_second=""
+awk_args=""
while [ $# -ge 1 ]; do
case "$1" in
@@ -68,6 +70,9 @@
version
exit 0
;;
+ --no-common )
+ awk_args="$awk_args -v no_common=1"
+ ;;
-1 | --merge-against-first )
merge_against_second=""
;;
@@ -184,7 +189,7 @@
@SED@ '/^msgstr ""/ { N; s/^msgstr ""\n$/msgstr " "\n/ }' "$from_file" \
| @MSGATTRIB@ --force-po --clear-fuzzy --no-obsolete - \
| @MSGCAT@ --no-wrap --force-po - "$temp4" \
- | @AWK@ -f @pkglibexecdir@/diff-po.awk
+ | @AWK@ -f @pkglibexecdir@/diff-po.awk $awk_args
cat <<EOF
</table>
Index: diff-po.awk.in
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/diff-po.awk.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- diff-po.awk.in 21 Mar 2013 16:25:13 -0000 1.1
+++ diff-po.awk.in 4 Apr 2013 05:10:50 -0000 1.2
@@ -27,7 +27,7 @@
return x
}
-function output_entry() {
+function print_entry() {
if(comment_no || msgstr_no)
{
no_head = "<td rowspan=\"3\" class=\"modified\"><strong>"
@@ -113,6 +113,11 @@
comment[i] = ""
msgstr[i] = ""
}
+}
+
+function output_entry() {
+ if(comment_no || msgstr_no || !no_common)
+ print_entry()
msg_no++
}
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.368
retrieving revision 1.369
diff -u -b -r1.368 -r1.369
--- ChangeLog 2 Apr 2013 11:45:42 -0000 1.368
+++ ChangeLog 4 Apr 2013 05:10:50 -0000 1.369
@@ -1,3 +1,13 @@
+2013-04-04 Pavel Kharitonov <address@hidden>
+
+ New option in `gnun-diff-po' not to output strings that
+ don't differ: `--no-common'.
+
+ * gnun-diff-po.in: Accept the `--no-common' option, pass
+ the result to `diff-po.awk'.
+ * diff-po.awk.in: Respect the `no_common' variable.
+ * NEWS: Update.
+
2013-04-02 Pavel Kharitonov <address@hidden>
* GNUmakefile (generate-translinks): Escape single quotes.
Index: NEWS
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/NEWS,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -b -r1.85 -r1.86
--- NEWS 21 Mar 2013 16:25:10 -0000 1.85
+++ NEWS 4 Apr 2013 05:10:50 -0000 1.86
@@ -13,6 +13,9 @@
*** The differences of comments were added to the tables generated
with `gnun-diff-po'.
+*** New option in `gnun-diff-po' not to output strings that don't
+ differ: `--no-common'.
+
** Bugs fixed in 0.8.
*** `gnun-diff-po' didn't highlight the differences in the messages
Index: doc/gnun.texi
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/doc/gnun.texi,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -b -r1.86 -r1.87
--- doc/gnun.texi 8 Mar 2013 12:03:07 -0000 1.86
+++ doc/gnun.texi 4 Apr 2013 05:10:50 -0000 1.87
@@ -2385,6 +2385,9 @@
Adjust the original strings of PO_FILE1 against PO_FILE2 when their
sets differ.
address@hidden --no-common
+Don't output strings that don't differ.
+
@item -t
@itemx address@hidden
Specify the title of the output HTML page.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- trans-coord/gnun/server/gnun gnun-diff-po.in di...,
Pavel Kharitonov <=