build 956 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/fonts
  4. mkdir -p $distdir
  5. tar xf [% project %]-[% c("version") %].tar.gz
  6. ln -s [% project %]-[% c("version") %] noto-fonts
  7. mkdir -p $distdir
  8. [% FOREACH fontfile = c("var/noto_fonts_hinted");
  9. GET 'cp "noto-fonts/hinted/' _ fontfile _ '" $distdir' _ "\n";
  10. END; %]
  11. [% FOREACH fontfile = c("var/noto_fonts_unhinted");
  12. GET 'cp "noto-fonts/unhinted/' _ fontfile _ '" $distdir' _ "\n";
  13. END; %]
  14. [% IF c("var/linux") || c("var/osx") %]
  15. unzip -o 2.0.0.zip -d STIX
  16. cp "STIX/stixfonts-2.0.0/archive/STIXv1.1.1/Fonts/STIX-Word/STIXMath-Regular.otf" $distdir/
  17. [% END %]
  18. [% IF c("var/linux") %]
  19. cp NotoEmoji-Regular.ttf $distdir/
  20. cp {NotoSansJP-Regular.otf,NotoSansKR-Regular.otf,NotoSansSC-Regular.otf,NotoSansTC-Regular.otf} $distdir/
  21. [% END %]
  22. cd /var/tmp/dist
  23. [% c('tar', {
  24. tar_src => [ 'fonts' ],
  25. tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
  26. }) %]