Browse files

Merge pull request #7 from ppicazo/build

Move build artifacts outside of the main source tree
  • Loading branch information...
2 parents 7443559 + 3fe7458 commit fe650838ce1d17876ce08e82a052e29666474873 @frankrolf frankrolf committed Sep 26, 2012
Showing with 11 additions and 8 deletions.
  1. +1 −0 .gitignore
  2. +10 −8 build.sh
View
1 .gitignore
@@ -0,0 +1 @@
+target/
View
18 build.sh
@@ -1,13 +1,15 @@
#!/bin/sh
-# Build OTFs
-for f in $(find . -name 'font.pfa')
-do
- makeotf -f $f -r
-done
+family=SourceCodePro
+weights=('Black' 'Bold' 'ExtraLight' 'Light' 'Regular' 'Semibold')
+
+# clean existing build artifacts
+rm -rf target/
+mkdir target/
-# Build TTFs
-for f in $(find . -name 'font.ttf')
+for w in ${weights[@]};
do
- makeotf -f $f -gf GlyphOrderAndAliasDB_TT -newNameID4 -r
+ 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

0 comments on commit fe65083

Please sign in to comment.