-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpreflight
executable file
·30 lines (22 loc) · 1.41 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
#!/bin/sh
# Script for calling multiple routines on a project, typically prior to committing to a repository.
# Stop on any errors
set -e
echo "-----Check and normalize Regular..."
# Do this before meta sync so we minimize problems in the BookBold
# This normalization will also run check and fix routines
psfnormalize -p checkfix=fix source/masters/Padauk-Regular.ufo
echo "-----Updating glyph orders and names in Regular..."
psfsetpsnames -q -p checkfix=none -p backup=False -i source/glyph_data.csv source/masters/Padauk-Regular.ufo
psfsetglyphorder -q -p checkfix=none -p backup=False --header sort_final -i source/glyph_data.csv source/masters/Padauk-Regular.ufo
echo "-----Syncing glyph orders, psnames, and other metadata to other UFOs..."
psfsyncmasters source/*.designspace
echo "-----Updating woff metadata file..."
psfmakewoffmetadata -n padauk -i org.sil.fonts -o source/padauk-WOFF-metadata.xml source/masters/Padauk-Regular.ufo
echo "-----Check and normalize BookBold..."
psfnormalize -p checkfix=fix source/masters/Padauk-BookBold.ufo
echo "Building internal fea..."
makefea -o source/masters/Padauk-Regular.ufo/features.fea -i source/padauk.fea -c source/padauk_classes.xml --omitaps "_R" source/masters/Padauk-Regular.ufo &
makefea -o source/masters/Padauk-BookBold.ufo/features.fea -i source/padauk.fea -c source/padauk_classes.xml --omitaps "_R" source/masters/Padauk-BookBold.ufo &
wait
echo "preflight completed!"