Permalink
Browse files

build.sh: fix bash-isms

  • Loading branch information...
1 parent 6b33fde commit c999251935df41bedf3c9c9db7a7607a1bc9edb4 @dolmen dolmen committed Sep 6, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 build.sh
View
@@ -1,15 +1,13 @@
#!/bin/sh
family=SourceCodePro
-weights=('Black' 'Bold' 'ExtraLight' 'Light' 'Medium' 'Regular' 'Semibold')
+weights='Black Bold ExtraLight Light Medium Regular Semibold'
# clean existing build artifacts
rm -rf target/
-mkdir target/
-mkdir target/OTF/
-mkdir target/TTF/
+mkdir target/ target/OTF/ target/TTF/
-for w in ${weights[@]};
+for w in $weights
do
makeotf -f Roman/$w/font.pfa -r -o target/OTF/$family-$w.otf
makeotf -f Roman/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/TTF/$family-$w.ttf

0 comments on commit c999251

Please sign in to comment.