blob: 5891403d82cc2755a6af6826cffc542f52bfc058 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
# $FreeBSD$
target="${1}"
shift
tarball="${1}"
shift
fonts="Tiny Small MediumBold Large Giant"
case "${target}" in
extract)
tar -xvzpf "${tarball}" $@
;;
configure)
for font in ${fonts}
do
f=`echo "${font}" | tr -d [[:lower:]] | tr [[:upper:]] [[:lower:]]`
mv -v "gdfont${f}.c" "gdfont${f}.c.dist"
mv -v "gdfont${f}.h" "gdfont${f}.h.dist"
done
;;
build)
set -x
for font in ${fonts}
do
f=`echo "${font}" | tr -d [[:lower:]] | tr [[:upper:]] [[:lower:]]`
perl ./bdftogd "gdFont${font}" "font${f}" < "${1}"
shift
done
;;
esac
# eof
|