mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
599b2a01eb
already installed as hpscat. PR: 7374 Submitted by: maintainer
33 lines
553 B
Bash
33 lines
553 B
Bash
#!/bin/sh
|
|
#
|
|
# hpscat fontend for FreeBSD ports
|
|
#
|
|
# 4 Apr 1997, Choi Jun Ho <junker@jazz.snu.ac.kr>
|
|
#
|
|
# It enables hpscat to print file without loading font in gs
|
|
#
|
|
|
|
HFONTPATH=%%PREFIX%%/share/fonts/ked-hpscat
|
|
|
|
options=$*
|
|
fileoutput=0
|
|
|
|
# check if -f option is specified
|
|
for i in $*
|
|
do
|
|
case $i in
|
|
-f) fileoutput=1; shift;;
|
|
esac
|
|
done
|
|
|
|
if [ $fileoutput != 1 ]; then
|
|
# print font header
|
|
cat $HFONTPATH/Header
|
|
for hfont in Munjo Gotic MunjoBold PCMunjo
|
|
do
|
|
cat $HFONTPATH/$hfont
|
|
done
|
|
fi
|
|
|
|
exec hpscat.bin $options
|