trans-coord-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trans-coord/gnun/server/gnun ChangeLog NEWS gnu...


From: Pavel Kharitonov
Subject: trans-coord/gnun/server/gnun ChangeLog NEWS gnu...
Date: Tue, 17 Jun 2014 15:12:18 +0000

CVSROOT:        /sources/trans-coord
Module name:    trans-coord
Changes by:     Pavel Kharitonov <ineiev>       14/06/17 15:12:18

Modified files:
        gnun/server/gnun: ChangeLog NEWS gnun-report.in 

Log message:
        * gnun-report.in: Fix option parser (broken since 2014-03-15).
        (other_files, other_to_translate): Only look for POTs in directories
        named `po'.
        (report_file) <trans-orphan>: Fix output (reported by Dora Scilipoti
        on trans-coord-devel).
        * NEWS: Update.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/ChangeLog?cvsroot=trans-coord&r1=1.415&r2=1.416
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/NEWS?cvsroot=trans-coord&r1=1.108&r2=1.109
http://cvs.savannah.gnu.org/viewcvs/trans-coord/gnun/server/gnun/gnun-report.in?cvsroot=trans-coord&r1=1.6&r2=1.7

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/ChangeLog,v
retrieving revision 1.415
retrieving revision 1.416
diff -u -b -r1.415 -r1.416
--- ChangeLog   6 Jun 2014 05:08:38 -0000       1.415
+++ ChangeLog   17 Jun 2014 15:12:17 -0000      1.416
@@ -1,3 +1,12 @@
+2014-06-17  Pavel Kharitonov  <address@hidden>
+
+       * gnun-report.in: Fix option parser (broken since 2014-03-15).
+       (other_files, other_to_translate): Only look for POTs
+       in directories named `po'.
+       (report_file) <trans-orphan>: Fix output (reported
+       by Dora Scilipoti on trans-coord-devel).
+       * NEWS: Update.
+
 2014-06-06  Pavel Kharitonov  <address@hidden>
 
        * diff-po.awk.in: Make it work with awks that don't

Index: NEWS
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/NEWS,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -b -r1.108 -r1.109
--- NEWS        6 Jun 2014 05:08:38 -0000       1.108
+++ NEWS        17 Jun 2014 15:12:17 -0000      1.109
@@ -4,6 +4,8 @@
 
 ** Bugs fixed in 0.10.
 
+*** `gnun-report' was broken.
+
 *** `gnun-diff-po' didn't work with awks that don't
     recognize the `[:space:]' class in their regular expressions.
 

Index: gnun-report.in
===================================================================
RCS file: /sources/trans-coord/trans-coord/gnun/server/gnun/gnun-report.in,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- gnun-report.in      15 Mar 2014 07:58:33 -0000      1.6
+++ gnun-report.in      17 Jun 2014 15:12:17 -0000      1.7
@@ -67,7 +67,7 @@
   first_entries='<td>'"${url}"'</td><td>'"${size}"'</td>'
   if ! test -f ${html}; then
     echo '<tr class="trans-orphan">'$first_entries
-    echo '<td><a href="'$tran_url'>No original HTML</a></td></tr>'
+    echo '<td><a href="'$tran_url'">No original HTML</a></td></tr>'
     return
   fi
   if ! test -f ${pot}; then
@@ -171,7 +171,6 @@
 function parse_option () {
   skip_option=
   trimmed_option=
-  end_of_options=
   case "$1" in
       -h* | --help )
          usage
@@ -217,6 +216,21 @@
           exit 1
          ;;
   esac
+}
+
+while [ $# -ge 1 ]; do
+  current_option="$1"
+  while test -n "$current_option";do
+    parse_option "$current_option" "$2"
+    if test -n "$skip_option"; then
+      shift
+    fi
+    if test -n "$trimmed_option"; then
+      current_option=-"$trimmed_option"
+    else
+      current_option=
+    fi
+  done
   shift
 done
 
@@ -304,7 +318,7 @@
 
 other_to_translate=$(
 for dir in $important_directories; do
-  find $dir -name \*.pot | while read pot; do
+  find $dir -name \*.pot -path \*/po/\* | while read pot; do
     base=${pot%.pot}; base=${base/\/po\//\/}
     echo " "$important_files $priority_files" " \
       | @GREP@ -q -F " $base " || echo $base
@@ -313,7 +327,7 @@
 )
 
 other_files=$(
-find . -name \*.pot ! -path ./server/gnun/\* | sort | while read pot; do
+find . -name \*.pot -path \*/po/\* | sort | while read pot; do
   pot=${pot#./}; base=${pot%.pot}; base=${base#po/}; base=${base/\/po\//\/}
   echo " "$other_to_translate $important_files $priority_files" " \
     | @GREP@ -q -F " $base " || echo $base



reply via email to

[Prev in Thread] Current Thread [Next in Thread]