1.1 --- a/tools/makefonts.sh Mon May 29 21:18:33 2023 +0200
1.2 +++ b/tools/makefonts.sh Wed May 31 16:41:49 2023 +0200
1.3 @@ -1,8 +1,27 @@
1.4 #!/bin/sh
1.5
1.6 -THISDIR=`dirname "$0"`
1.7 -DIRNAME=`readlink -f "$THISDIR/.."`
1.8 -PROGNAME=`basename "$0"`
1.9 +# Generate font binary files from font definitions.
1.10 +#
1.11 +# Copyright (C) 2018, 2023 Paul Boddie <paul@boddie.org.uk>
1.12 +#
1.13 +# This program is free software; you can redistribute it and/or
1.14 +# modify it under the terms of the GNU General Public License as
1.15 +# published by the Free Software Foundation; either version 2 of
1.16 +# the License, or (at your option) any later version.
1.17 +#
1.18 +# This program is distributed in the hope that it will be useful,
1.19 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1.20 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.21 +# GNU General Public License for more details.
1.22 +#
1.23 +# You should have received a copy of the GNU General Public License
1.24 +# along with this program; if not, write to the Free Software
1.25 +# Foundation, Inc., 51 Franklin Street, Fifth Floor,
1.26 +# Boston, MA 02110-1301, USA
1.27 +
1.28 +THISDIR=$(dirname "$0")
1.29 +DIRNAME=$(readlink -f "$THISDIR/..")
1.30 +PROGNAME=$(basename "$0")
1.31
1.32 UNIFONT='/usr/share/unifont/unifont.hex'
1.33
1.34 @@ -35,10 +54,10 @@
1.35
1.36 # Find all needed fonts and generate them.
1.37
1.38 -for NEEDED in `find "$DIRNAME/pkg" -name '*.tff.needed'` ; do
1.39 - TARGETDIR=`dirname "$NEEDED"`
1.40 - FONTFILE=`basename "$NEEDED" .needed`
1.41 - FONTNAME=`basename "$FONTFILE" .tff`
1.42 +for NEEDED in $(find "$DIRNAME/pkg" -name '*.tff.needed') ; do
1.43 + TARGETDIR=$(dirname "$NEEDED")
1.44 + FONTFILE=$(basename "$NEEDED" .needed)
1.45 + FONTNAME=$(basename "$FONTFILE" .tff)
1.46
1.47 FONTPATH="$TARGETDIR/$FONTFILE"
1.48
1.49 @@ -72,3 +91,5 @@
1.50 fi
1.51
1.52 done
1.53 +
1.54 +# vim: tabstop=4 expandtab shiftwidth=4