[Po4a-commits] "po4a/scripts po4aman-display-po,1.2,1.3"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Fri Apr 14 18:34:04 UTC 2006


Update of /cvsroot/po4a/po4a/scripts
In directory haydn:/tmp/cvs-serv26362/scripts

Modified Files:
	po4aman-display-po 
Log Message:
When the master man page is not provided, only look in the C manpages.
When the man page was already translated, this existing translation was
displayed.


Index: po4aman-display-po
===================================================================
RCS file: /cvsroot/po4a/po4a/scripts/po4aman-display-po,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- po4aman-display-po	7 Apr 2006 22:27:30 -0000	1.2
+++ po4aman-display-po	14 Apr 2006 18:34:02 -0000	1.3
@@ -43,18 +43,18 @@
   file=$(basename $file)
   ext=""
   echo Looking for manpage: $file
-  MASTER=$(man -w $file)
+  MASTER=$(man -w -L C $file)
   if [ $? != "0" ]
   then
     ext=$(echo $file | sed -e 's/^.*\.\([1-9].*\)$/\1/' -e 's/\..*//')
     file=$(echo $file | sed -e 's/\.[1-9].*//')
     echo looking for manpage $file in section $ext
-    MASTER=$(man -w $ext $file)
+    MASTER=$(man -w -L C $ext $file)
     if [ $? != "0" ]
     then
       file=$(echo $file | sed -e 's/\..*//')
       echo looking for manpage $file in section $ext
-      MASTER=$(man -w $ext $file)
+      MASTER=$(man -w -L C $ext $file)
       if [ $? != "0" ]
       then
         echo No manpage found for $PO




More information about the Po4a-commits mailing list