1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/korean/hpscat/files/hpscat.sh.in
Jung-uk Kim 88be950540 - Re-add ftp.kaist.ac.kr and remove defunct ftp.kreonet.re.kr.
- Modernize the port and make Clang happy.
2013-06-17 23:25:53 +00:00

33 lines
531 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=%%FONTDIR%%
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