From b7f148b73c8f45d7d03b1ea46d4c4cf8cb5f27e5 Mon Sep 17 00:00:00 2001 From: Miguel Sousa Date: Thu, 4 Sep 2014 00:11:49 -0700 Subject: [PATCH] Simplifies build script --- build.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 8e9ac227fe..ab9d9e4a47 100755 --- a/build.sh +++ b/build.sh @@ -1,23 +1,21 @@ #!/bin/sh family=SourceSansPro -romanWeights=('Black' 'Bold' 'ExtraLight' 'Light' 'Regular' 'Semibold') -italicWeights=('BlackIt' 'BoldIt' 'ExtraLightIt' 'LightIt' 'It' 'SemiboldIt') +romanWeights='Black Bold ExtraLight Light Regular Semibold' +italicWeights='BlackIt BoldIt ExtraLightIt LightIt It SemiboldIt' # clean existing build artifacts rm -rf target/ -mkdir target/ -mkdir target/OTF/ -mkdir target/TTF/ +mkdir target/ target/OTF/ target/TTF/ -for w in ${romanWeights[@]}; +for w in $romanWeights do makeotf -f Roman/$w/font.ufo -r -o target/OTF/$family-$w.otf makeotf -f Roman/$w/font.ttf -r -o target/TTF/$family-$w.ttf rm Roman/$w/current.fpr # remove default options file from the source tree after building done -for w in ${italicWeights[@]}; +for w in $italicWeights do makeotf -f Italic/$w/font.ufo -r -o target/OTF/$family-$w.otf makeotf -f Italic/$w/font.ttf -r -o target/TTF/$family-$w.ttf