From 3e4d1a1844195b17df2c2ccdc5cfca84fbf07721 Mon Sep 17 00:00:00 2001 From: Paul Picazo Date: Mon, 1 Oct 2012 23:11:04 -0700 Subject: [PATCH] Add initial build script. --- build.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000000..87c8221558 --- /dev/null +++ b/build.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +family=SourceSansPro +romanWeights=('Black' 'Bold' 'ExtraLight' 'Light' 'Regular' 'Semibold') +italicWeights=('BlackIt', 'BoldIt', 'ExtraLightIt', 'LightIt', 'It', 'SemiboldIt') + +# clean existing build artifacts +rm -rf target/ +mkdir target/ + +for w in ${romanWeights[@]}; +do + makeotf -sp target/$family-$w-otf.fpr -f Roman/$w/font.pfa -r -o target/$family-$w.otf + makeotf -sp target/$family-$w-ttf.fpr -f Roman/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/$family-$w.ttf + rm Roman/$w/current.fpr # remove default options file from the source tree after building +done + +for w in ${italicWeights[@]}; +do + makeotf -sp target/$family-$w-otf.fpr -f Italic/$w/font.pfa -r -o target/$family-$w.otf + makeotf -sp target/$family-$w-ttf.fpr -f Italic/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/$family-$w.ttf + rm Italic/$w/current.fpr # remove default options file from the source tree after building +done +