# addglyph    
# Part of the project  mayaps  v.1.0
# Shell script to add a glyph to a mayafont
# Example: 
#  addglyph 031 A 
#  addglyph 056 A "[()(-)(r)(|)()]"
#
#  $1 = glyph name
#  $2 = A, a, C, or c (affix/central)
#
#  Parameter transmitted to  addg (see addg.c)
#
#  $3 = [(L)(U)(R)(D)(S)]  (example: [(+)()(|)(-)()]
#
unzip -o -q bmp $1.bmp
mv $1.bmp tmp.bmp
./cotrace tmp.bmp -c >tmp.ee
echo $1
cat tmp.bb
cat >>mpf.mpf <<!

%@ $1
!
./addg $1 $2 $3 >>mpf.mpf
rm tmp.bb
rm tmp.ee
rm tmp.bmp
