1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/korean/hpscat/files/hpscat.sh
Satoshi Asami 30c2c932c8 Hangul Text Printing Utility
PR:		3341
Submitted by:	Choi Jun Ho <junker@moderato.snu.ac.kr>
1997-06-04 08:35:44 +00:00

33 lines
549 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 $options