Skip to content
This repository
Browse code

Merge pull request #7 from ppicazo/build

Move build artifacts outside of the main source tree
  • Loading branch information...
commit fe650838ce1d17876ce08e82a052e29666474873 2 parents 7443559 + 3fe7458
Frank Grießhammer frankrolf authored

Showing 2 changed files with 11 additions and 8 deletions. Show diff stats Hide diff stats

  1. +1 0  .gitignore
  2. +10 8 build.sh
1  .gitignore
... ... @@ -0,0 +1 @@
  1 +target/
18 build.sh
... ... @@ -1,13 +1,15 @@
1 1 #!/bin/sh
2 2
3   -# Build OTFs
4   -for f in $(find . -name 'font.pfa')
5   -do
6   - makeotf -f $f -r
7   -done
  3 +family=SourceCodePro
  4 +weights=('Black' 'Bold' 'ExtraLight' 'Light' 'Regular' 'Semibold')
  5 +
  6 +# clean existing build artifacts
  7 +rm -rf target/
  8 +mkdir target/
8 9
9   -# Build TTFs
10   -for f in $(find . -name 'font.ttf')
  10 +for w in ${weights[@]};
11 11 do
12   - makeotf -f $f -gf GlyphOrderAndAliasDB_TT -newNameID4 -r
  12 + makeotf -sp target/$family-$w-otf.fpr -f Roman/$w/font.pfa -r -o target/$family-$w.otf
  13 + makeotf -sp target/$family-$w-ttf.fpr -f Roman/$w/font.ttf -gf GlyphOrderAndAliasDB_TT -r -o target/$family-$w.ttf
  14 + rm Roman/$w/current.fpr # remove default options file from the source tree after building
13 15 done

0 comments on commit fe65083

Please sign in to comment.
Something went wrong with that request. Please try again.