[Po4a-commits] "po4a/scripts po4aman-display-po,1.6,1.7"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Sun Apr 16 19:47:40 UTC 2006


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

Modified Files:
	po4aman-display-po 
Log Message:
s/ext/section/


Index: po4aman-display-po
===================================================================
RCS file: /cvsroot/po4a/po4a/scripts/po4aman-display-po,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- po4aman-display-po	16 Apr 2006 19:46:09 -0000	1.6
+++ po4aman-display-po	16 Apr 2006 19:47:38 -0000	1.7
@@ -52,20 +52,20 @@
   echo "Trying to find the manpage according to a line reference in the PO."
   file=$(grep -m 1 "^#:" $PO | sed -e 's/^.* \(.*\):.*$/\1/')
   file=$(basename $file)
-  ext=""
+  section=""
   echo Looking for manpage: $file
   MASTER=$(man -w -L C $file)
   if [ $? != "0" ]
   then
-    ext=$(echo $file | sed -ne 's/^.*\.\([1-9].*\)$/\1/p' -e 's/\..*//')
+    section=$(echo $file | sed -ne 's/^.*\.\([1-9].*\)$/\1/p' -e 's/\..*//')
     file=$(echo $file | sed -e 's/\.[1-9].*//')
-    echo looking for manpage $file in section $ext
-    MASTER=$(man -w -L C $ext $file)
+    echo looking for manpage $file in section $section
+    MASTER=$(man -w -L C $section $file)
     if [ $? != "0" ]
     then
       file=$(echo $file | sed -e 's/\..*//')
-      echo looking for manpage $file in section $ext
-      MASTER=$(man -w -L C $ext $file)
+      echo looking for manpage $file in section $section
+      MASTER=$(man -w -L C $section $file)
       if [ $? != "0" ]
       then
         echo No manpage found for $PO




More information about the Po4a-commits mailing list