[Po4a-commits] "po4a/scripts po4aman-display-po,1.5,1.6"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Sun Apr 16 19:46:12 UTC 2006
Update of /cvsroot/po4a/po4a/scripts
In directory haydn:/tmp/cvs-serv12640/scripts
Modified Files:
po4aman-display-po
Log Message:
Only use an section if a numeric section was specified.
Index: po4aman-display-po
===================================================================
RCS file: /cvsroot/po4a/po4a/scripts/po4aman-display-po,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- po4aman-display-po 16 Apr 2006 19:43:38 -0000 1.5
+++ po4aman-display-po 16 Apr 2006 19:46:09 -0000 1.6
@@ -57,7 +57,7 @@
MASTER=$(man -w -L C $file)
if [ $? != "0" ]
then
- ext=$(echo $file | sed -e 's/^.*\.\([1-9].*\)$/\1/' -e 's/\..*//')
+ ext=$(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)
More information about the Po4a-commits
mailing list