-
Notifications
You must be signed in to change notification settings - Fork 0
/
preflight
executable file
·32 lines (22 loc) · 1.5 KB
/
preflight
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
#!/bin/sh
# Stop on any errors
set -e
echo "-----Update version number..."
psfsetversion source/masters/Akatab-Regular.ufo "3.015" -l source/logs/setversionR.log
echo "-----Check and normalize Regular & Black..."
psfnormalize -p checkfix=fix source/masters/Akatab-Regular.ufo -l source/masters/logs/normReg.log &
psfnormalize -p checkfix=fix source/masters/Akatab-Black.ufo -l source/masters/logs/normBlack.log &
wait
echo "-----Updating glyph orders in Regular..."
psfsetglyphorder -q --header sort_final -i source/glyph_data.csv source/masters/Akatab-Regular.ufo -p backup=False
echo "-----Updating production names in Regular..."
psfsetpsnames -q -i source/glyph_data.csv source/masters/Akatab-Regular.ufo -p backup=False
echo "-----Syncing glyph orders, psnames, and other metadata to other UFOs..."
psfsyncmasters source/*.designspace -l source/logs/sync.log
echo "-----Updating woff metadata file..."
psfmakewoffmetadata -n Akatab -i org.sil.fonts -o source/Akatab-WOFF-metadata.xml source/masters/Akatab-Regular.ufo -l source/masters/logs/makewoff.log
echo "Building internal fea..."
makefea -q -o source/masters/Akatab-Regular.ufo/features.fea -l source/logs/Akatab-Regular-makefea.log -i source/akatab_master.feax -c source/akatab_classes.xml source/masters/Akatab-Regular.ufo &
makefea -q -o source/masters/Akatab-Black.ufo/features.fea -l source/logs/Akatab-Black-makefea.log -i source/akatab_master.feax -c source/akatab_classes.xml source/masters/Akatab-Black.ufo &
wait
echo "-----Preflight completed!"