Permalink
Browse files

Merge pull request #59 from dolmen/fix/bashisms

build.sh: fix bash-isms
  • Loading branch information...
2 parents 6b33fde + c999251 commit 94e8f996c016955fc1d37368105a39ef50c266e7 @miguelsousa committed Sep 7, 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 94e8f99

Please sign in to comment.