diff options
Diffstat (limited to 'korean/hpscat/files')
-rw-r--r-- | korean/hpscat/files/hpscat.sh | 32 | ||||
-rw-r--r-- | korean/hpscat/files/patch-aa | 27 | ||||
-rw-r--r-- | korean/hpscat/files/patch-ab | 12 |
3 files changed, 71 insertions, 0 deletions
diff --git a/korean/hpscat/files/hpscat.sh b/korean/hpscat/files/hpscat.sh new file mode 100644 index 000000000000..7877b51483d7 --- /dev/null +++ b/korean/hpscat/files/hpscat.sh @@ -0,0 +1,32 @@ +#!/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 diff --git a/korean/hpscat/files/patch-aa b/korean/hpscat/files/patch-aa new file mode 100644 index 000000000000..e8fbf3894bed --- /dev/null +++ b/korean/hpscat/files/patch-aa @@ -0,0 +1,27 @@ +*** Makefile.orig Thu Nov 23 00:42:41 1995 +--- Makefile Fri Apr 4 13:44:29 1997 +*************** +*** 11,20 **** + DADVHF = -DADV_HFONT + #DADVHF = + # define if you want to make the default paper size US letter instead of A4 +! DUS = -DUS_VERSION +! #DUS = + CFLAGS = -O $(DHPS) $(DADVHF) $(DUS) + LDFLAGS = -s + + $(PRG): $(OBJ) + $(CC) $(LDFLAGS) -o $@ $(OBJ) +--- 11,22 ---- + DADVHF = -DADV_HFONT + #DADVHF = + # define if you want to make the default paper size US letter instead of A4 +! #DUS = -DUS_VERSION +! DUS = + CFLAGS = -O $(DHPS) $(DADVHF) $(DUS) + LDFLAGS = -s ++ ++ all: $(PRG) + + $(PRG): $(OBJ) + $(CC) $(LDFLAGS) -o $@ $(OBJ) diff --git a/korean/hpscat/files/patch-ab b/korean/hpscat/files/patch-ab new file mode 100644 index 000000000000..4ea18b447540 --- /dev/null +++ b/korean/hpscat/files/patch-ab @@ -0,0 +1,12 @@ +*** user.c.old Fri Apr 4 13:40:38 1997 +--- user.c Fri Apr 4 13:40:42 1997 +*************** +*** 37,43 **** + char buf[BUFSIZ]; + char *home; + FILE *fp; +- extern char *getenv PROT((char *)); + home = getenv("HOME"); + if(strlen(home)==0) + return; +--- 37,42 ---- |