[Po4a-commits] "po4a/scripts po4apod-display-po,1.1,1.2"
Nicolas FRANÃOIS
nekral-guest at alioth.debian.org
Mon Jul 20 23:18:13 UTC 2009
Update of /cvsroot/po4a/po4a/scripts
In directory alioth:/tmp/cvs-serv11847/scripts
Modified Files:
po4apod-display-po
Log Message:
* scripts/po4apod-display-po: Fix some bashisms.
* scripts/po4apod-display-po: Added support for additional
options.
* scripts/po4apod-display-po: Always generate the manpagesin
UTF-8. man will figure out what has to be done.
Index: po4apod-display-po
===================================================================
RCS file: /cvsroot/po4a/po4a/scripts/po4apod-display-po,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- po4apod-display-po 20 Jul 2009 17:54:38 -0000 1.1
+++ po4apod-display-po 20 Jul 2009 23:18:11 -0000 1.2
@@ -4,13 +4,13 @@
NAME=""
SECTION=""
PO=""
-UTF8=""
+OPTIONS=""
function usage () {
- echo "Usage : $(basename $0) -m POD_FILE -p PO_FILE"
+ echo "Usage : $(basename $0) -m POD_FILE -p PO_FILE [-o PO4A_OPT]"
}
-while getopts m:p:uh option; do
+while getopts m:p:o:h option; do
case $option in
m)
MASTER=$OPTARG
@@ -18,6 +18,9 @@
p)
PO=$OPTARG
;;
+ o)
+ OPTIONS="$OPTIONS $OPTARG"
+ ;;
h)
usage
exit 0
@@ -29,7 +32,7 @@
esac
done
-if [[ -z $PO || -z $MASTER ]]; then
+if [ -z $PO ] || [ -z $MASTER ]; then
usage
exit 1
fi
@@ -50,7 +53,7 @@
#NAME=$(basename $MASTER .pod | sed -e 's/\..//')
#SECTION=$(basename $MASTER .pod | sed -e 's/.*\.//')
-po4a-translate -f pod -m $MASTER -p $PO \
- | pod2man -r '' -c TRANSLATED -n $MASTER \
+po4a-translate -f pod -m $MASTER -p $PO -L UTF-8 $OPTIONS \
+ | pod2man -r '' -c TRANSLATED -n $MASTER --utf8 \
| man -l -
More information about the Po4a-commits
mailing list