forked from silnrsi/font-padauk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preflight
executable file
·32 lines (23 loc) · 1.65 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
# Script for calling multiple routines on a project, typically prior to committing to a repository.
# Stop on any errors
set -e
echo "-----Update version number..."
psfsetversion source/masters/Padauk-Regular.ufo "5.002" -l source/logs/setversionR.log
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 -l source/logs/normR.log
echo "-----Updating glyph orders in Regular..."
psfsetglyphorder -q -p checkfix=none -p backup=False --header sort_final -i source/glyph_data.csv source/masters/Padauk-Regular.ufo -l source/logs/sortorder.log
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 padauk -i org.sil.fonts -o source/padauk-WOFF-metadata.xml source/masters/Padauk-Regular.ufo -l source/logs/makewoff.log
echo "-----Check and normalize BookBold..."
psfnormalize -p checkfix=fix source/masters/Padauk-BookBold.ufo -l source/logs/normKB.log
echo "Building internal fea..."
psfmakefea -q -o source/masters/Padauk-Regular.ufo/features.fea -l source/logs/Padauk-Regular-psfmakefea.log -i source/padauk.fea -c source/padauk_classes.xml --omitaps "_R" source/masters/Padauk-Regular.ufo &
psfmakefea -q -o source/masters/Padauk-BookBold.ufo/features.fea -l source/logs/Padauk-BookBold-psfmakefea.log -i source/padauk.fea -c source/padauk_classes.xml --omitaps "_R" source/masters/Padauk-BookBold.ufo &
wait
echo "preflight completed!"