[Po4a-commits] "po4a/share po4a-build, 1.5, 1.6 po4a-build.conf.example, 1.2, 1.3"
Neil Williams
codehelp at alioth.debian.org
Fri Nov 13 10:46:43 UTC 2009
Update of /cvsroot/po4a/po4a/share
In directory alioth:/tmp/cvs-serv29202/share
Modified Files:
po4a-build po4a-build.conf.example
Log Message:
* MANIFEST: Add build and runtime documentation.
* Makefile: Remove empty directories after install.
* doc/po4a-build.conf.5.pod: Documentation for the
po4a-build.conf file.
* doc/po4a-runtime.7.pod: Documentation for using example
files from po4a for runtime script translation.
* doc/po4a.7.pod: Typo.
* po4a-build.conf: Add section 5 and 7 POD content.
* share/doc/po4a-build.xml: Document section 5 support.
* share/po4a-build: Support section 5 for POD.
* share/po4a-build.conf.example: Section 5 support.
Index: po4a-build.conf.example
===================================================================
RCS file: /cvsroot/po4a/po4a/share/po4a-build.conf.example,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- po4a-build.conf.example 11 Nov 2009 00:47:24 -0000 1.2
+++ po4a-build.conf.example 13 Nov 2009 10:46:41 -0000 1.3
@@ -21,10 +21,14 @@
XMLDIR="doc"
# the pattern to find the .docbook files
DOCBOOKDIR=""
+# the XSL file to use for Docbook XSL
+XSLFILE="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
# the POD files for man1
PODFILE=""
# the POD files for man3/ - module names regenerated from the path.
PODMODULES=""
+# POD files for section 5
+POD5FILES=""
# POD files for section 7
POD7FILES=""
# the binary packages using POD
@@ -33,5 +37,7 @@
HTMLDIR="html"
# html DocBook file
HTMLFILE="HOWTO.xml"
+# the XSL file to use for Docbook XSL
+HTMLXSL="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"
# Minimal threshold for translation percentage to keep
KEEP=
Index: po4a-build
===================================================================
RCS file: /cvsroot/po4a/po4a/share/po4a-build,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- po4a-build 12 Nov 2009 22:02:15 -0000 1.5
+++ po4a-build 13 Nov 2009 10:46:41 -0000 1.6
@@ -56,6 +56,8 @@
PODMODULES=""
# POD files for section 7
POD7FILES=""
+# POD files for section 5
+POD5FILES=""
# the binary packages using POD
PODPACKAGES=""
# html output (subdirectory of BASEDIR)
@@ -166,6 +168,12 @@
wrap_langs "[type:pod]" "$file" "\$lang:$BASEDIR/pod/1/\$lang/$LOCAL"
done
fi
+if [ -n "$POD5FILES" ]; then
+ for file in $POD5FILES; do
+ LOCAL=`basename $file`
+ wrap_langs "[type:pod]" "$file" "\$lang:$BASEDIR/pod/5/\$lang/$LOCAL"
+ done
+fi
if [ -n "$POD7FILES" ]; then
for file in $POD7FILES; do
LOCAL=`basename $file`
@@ -202,6 +210,9 @@
if [ -n "$HTMLDIR" ]; then
mkdir -p $BASEDIR/$d/$l/$HTMLDIR/
fi
+ if [ -n "$POD5FILES" ]; then
+ mkdir -p $BASEDIR/$d/man/$l/man5/
+ fi
if [ -n "$POD7FILES" ]; then
mkdir -p $BASEDIR/$d/man/$l/man7/
fi
@@ -214,6 +225,9 @@
if [ -n "$PODMODULES" ]; then
mkdir -p $BASEDIR/$d/man/man3/
fi
+ if [ -n "$POD5FILES" ]; then
+ mkdir -p $BASEDIR/$d/man/man5/
+ fi
if [ -n "$POD7FILES" ]; then
mkdir -p $BASEDIR/$d/man/man7/
fi
@@ -264,12 +278,25 @@
pod2man $file $BASEDIR/$POD/man/man3/$name.3
done
fi
+ if [ -n "$POD5FILES" ]; then
+ for file in $POD5FILES; do
+ LOCAL=`basename $file`
+ eval_gettext "Processing untranslated files for \$file (5) . . ."; echo
+ # shorten names that already contain the 5.
+ SHORT=`echo $LOCAL|cut -d'5' -f1|sed -e 's/\.$//'`
+ if [ -n "$SHORT" ]; then
+ pod2man -s 5 $file $BASEDIR/$POD/man/man5/${SHORT}.5
+ else
+ pod2man -s 5 $file $BASEDIR/$POD/man/man5/${LOCAL}.5
+ fi
+ done
+ fi
if [ -n "$POD7FILES" ]; then
for file in $POD7FILES; do
LOCAL=`basename $file`
eval_gettext "Processing untranslated files for \$file (7) . . ."; echo
# shorten names that already contain the 7.
- SHORT=`echo $LOCAL|cut -d'7' -f1|tr -d .`
+ SHORT=`echo $LOCAL|cut -d'7' -f1|sed -e 's/\.$//'`
if [ -n "$SHORT" ]; then
pod2man -s 7 $file $BASEDIR/$POD/man/man7/${SHORT}.7
else
@@ -323,13 +350,28 @@
fi
done
fi
+ if [ -n "$POD5FILES" ]; then
+ for file in $POD5FILES; do
+ LOCAL=`basename $file`
+ if [ -f $BASEDIR/pod/5/$l/$LOCAL ]; then
+ eval_gettext "Processing \$l translations for \$file (5). . ."; echo
+ # shorten names that already contain the 5.
+ SHORT=`echo $LOCAL|cut -d'5' -f1|sed -e 's/\.$//'`
+ if [ -n "$SHORT" ]; then
+ pod2man -s 5 $BASEDIR/pod/5/$l/$LOCAL $BASEDIR/$POD/man/$l/man5/${SHORT}.5
+ else
+ pod2man -s 5 $BASEDIR/pod/5/$l/$LOCAL $BASEDIR/$POD/man/$l/man5/$LOCAL.5
+ fi
+ fi
+ done
+ fi
if [ -n "$POD7FILES" ]; then
for file in $POD7FILES; do
LOCAL=`basename $file`
if [ -f $BASEDIR/pod/7/$l/$LOCAL ]; then
eval_gettext "Processing \$l translations for \$file (7). . ."; echo
# shorten names that already contain the 7.
- SHORT=`echo $LOCAL|cut -d'7' -f1|tr -d .`
+ SHORT=`echo $LOCAL|cut -d'7' -f1|sed -e 's/\.$//'`
if [ -n "$SHORT" ]; then
pod2man -s 7 $BASEDIR/pod/7/$l/$LOCAL $BASEDIR/$POD/man/$l/man7/${SHORT}.7
else
More information about the Po4a-commits
mailing list