blob: ce98a6789ea2dcab1a307950b41e461493cf1f59 (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
PFB="pfb/hfbr10.pfb pfb/hfbras8.pfb pfb/hfbrbx10.pfb pfb/hfbrsl10.pfb \
pfb/hfbrsy8.pfb pfb/hfbr17.pfb pfb/hfbras9.pfb pfb/hfbrmb10.pfb \
pfb/hfbrsl17.pfb pfb/hfbrsy9.pfb pfb/hfbr8.pfb pfb/hfbrbs10.pfb \
pfb/hfbrmi10.pfb pfb/hfbrsl8.pfb pfb/hfsltl10.pfb pfb/hfbr9.pfb \
pfb/hfbrbs8.pfb pfb/hfbrmi8.pfb pfb/hfbrsl9.pfb pfb/hftl10.pfb \
pfb/hfbras10.pfb pfb/hfbrbs9.pfb pfb/hfbrmi9.pfb pfb/hfbrsy10.pfb"
AFM="afm/hfbr10.afm afm/hfbras8.afm afm/hfbrbx10.afm afm/hfbrsl10.afm \
afm/hfbrsy8.afm afm/hfbr17.afm afm/hfbras9.afm afm/hfbrmb10.afm \
afm/hfbrsl17.afm afm/hfbrsy9.afm afm/hfbr8.afm afm/hfbrbs10.afm \
afm/hfbrmi10.afm afm/hfbrsl8.afm afm/hfsltl10.afm afm/hfbr9.afm \
afm/hfbrbs8.afm afm/hfbrmi8.afm afm/hfbrsl9.afm afm/hftl10.afm \
afm/hfbras10.afm afm/hfbrbs9.afm afm/hfbrmi9.afm afm/hfbrsy10.afm"
DVIPS="dvips/config.hfbright dvips/hfbright.map"
TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
TEXMFLOCAL=`kpsexpand '$TEXMFLOCAL'`
FONTS="$TEXMFLOCAL/fonts/type1/public/hfbright"
METRICS="$TEXMFLOCAL/fonts/afm/public/hfbright"
DVIPSDIR="$TEXMFLOCAL/dvips/config"
ALLESDA=true
echo "Test for existence of all files in »pfb/« and »dvips/«"
for a in $PFB $AFM $DVIPS
do
if [ ! -f $a ]
then
ALLESDA=false
fi
done
if [ "$ALLESDA" != "true" ]
then
echo "Some files are missing: Generating them using »generate.sh«."
echo ""
echo "Now running »generate.sh«:"
echo ""
./generate.sh
echo ""
echo "»generate.sh« is ready."
echo ""
else
echo "All files existing."
fi
echo "Installing files below »$TEXMFLOCAL/«"
echo "Path »$FONTS«"
if [ ! -d $FONTS ]
then
echo "does not exist, creating it"
mkdir -p $FONTS
else
echo "already exists, reusing it (first clean it)"
rm -f $FONTS/*
fi
echo "Copy »pfb/*« to »$FONTS«"
cp -f pfb/* $FONTS
echo "Path »$METRICS«"
if [ ! -d $METRICS ]
then
echo "does not exist, creating it"
mkdir -p $METRICS
else
echo "already exists, reusing it (first clean it)"
rm -f $METRICS/*
fi
echo "Copy »afm/*« to »$METRICS«"
cp -f afm/* $METRICS
echo "Path »$DVIPSDIR«"
if [ ! -d $DVIPSDIR ]
then
echo "does not exist, creating it"
mkdir -p $DVIPSDIR
else
echo "already exists, reusing it"
fi
echo "Copy »dvips/*« to »$DVIPSDIR«"
cp -f dvips/* $DVIPSDIR
echo "Running »texhash« to update the TeX file database"
texhash
echo ""
echo "Now, you should add the line »Map hfbright.map« to the file »updmap.cfg« which"
echo "should be in »$TEXMFMAIN/web2c/« or"
echo "»$TEXMFLOCAL/web2c/«. Then, run »updmap«."
|