/usr/share/doc/mgetty/examples/coverpg.pbm is in mgetty-docs 1.1.36-1.6.
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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | #!/bin/sh
#
# make.coverpg -- simple version, use pbmtext (crude, but good example)
#
# Author: gert@greenie.muc.de
#
# Syntax:
# make.coverpg <pages> <sender-ID> <sender-NAME> <receiver-ID>
# <receiver-NAME> <date> <time>
#
#
# if called with "-m <memo-file>", put that file on cover page:
MEMO=""
if [ X$1 = X-m ] ; then
MEMO=$2
shift ; shift
fi
#
# select font according to resolution
if [ X$normal_res = X ]
then
font=/usr/local/lib/mgetty+sendfax/cour25.pbm
else
font=/usr/local/lib/mgetty+sendfax/cour25n.pbm
fi
tmp=/tmp/coverpg.$$
#
# standard part of page
#
cat << EOF >$tmp
+----------------------------------------+
| T E L E F A X ---- M E S S A G E |
+----------------------------------------+
Sender: $3
Fax: $2
Receipient: $5
Fax: $4
Pages (incl. cover page): $1
Date fax created: $6 $7
Fax-Software used: mgetty+sendfax 1.1.10
EOF
#
# if desired, attach MEMO file
#
if [ ! -z "$MEMO" ] ; then
echo " Message:" >>$tmp
echo "" >>$tmp
sed -e 's/^/ /' -e '40,$d' $MEMO >>$tmp
fi
#
# now make G3 file -> stdout
#
cat $tmp | pbmtext -font $font | pbmtog3
rm -f $tmp
|