shithub: neatmkfn

Download patch

ref: 10cc844214d415d25c5656769805085103e1ba99
parent: 960e6d479e32d6912de9cadf5687e1b90b75193d
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Oct 4 18:47:37 EDT 2014

gen.sh: do not use the keyword function

Suggested by Carsten Kunze <carsten.kunze@arcor.de>.

--- a/gen.sh
+++ b/gen.sh
@@ -24,7 +24,7 @@
 echo "unitwidth 10" >>$TP/DESC
 
 # afmconv troff_name font_path extra_mktrfn_options
-function afmconv
+afmconv()
 {
 	echo $1
 	cat $2 | ./mkfn -a -b -r$RES -t "$1" $3 $4 $5 $6 $7 | \
@@ -32,7 +32,7 @@
 }
 
 # ttfconv troff_name font_path extra_mktrfn_options
-function ttfconv
+ttfconv()
 {
 	echo $1
 	cat $2 | ./mkfn -b -o -r$RES -t $1 -k$MINKERN $3 $4 $5 $6 $7 | \
@@ -40,7 +40,7 @@
 }
 
 # otfconv troff_name font_path extra_mktrfn_options
-function otfconv
+otfconv()
 {
 	TTF="/tmp/.neatmkfn.ttf"
 	# convert the OTF file to TTF using fontforge