/usr/bin/po4apod-display-po is in po4a 0.41-1ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #!/bin/sh
MASTER=""
NAME=""
SECTION=""
PO=""
OPTIONS=""
usage () {
echo "Usage : $(basename $0) -m POD_FILE -p PO_FILE [-o PO4A_OPT]"
}
while getopts m:p:o:h option; do
case $option in
m)
MASTER=$OPTARG
;;
p)
PO=$OPTARG
;;
o)
OPTIONS="$OPTIONS $OPTARG"
;;
h)
usage
exit 0
;;
[?])
usage 1>&2
exit 1
;;
esac
done
if [ -z $PO ] || [ -z $MASTER ]; then
usage
exit 1
fi
if [ ! -f $PO ]; then
echo "Error: unable to find the file $PO."
usage
exit 1
fi
if [ ! -f $MASTER ]; then
echo "Error: unable to find the file $MASTER."
usage
exit 1
fi
# Can fail to retrieve the expected result with various files...
#NAME=$(basename $MASTER .pod | sed -e 's/\..//')
#SECTION=$(basename $MASTER .pod | sed -e 's/.*\.//')
po4a-translate -f pod -m $MASTER -p $PO -L UTF-8 $OPTIONS \
| pod2man -r '' -c TRANSLATED -n $MASTER --utf8 \
| man -l -
|