build 642 B

1234567891011121314151617
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. [% FOREACH lang = c('var/locales') %]
  4. [% SET lang = tmpl(lang) %]
  5. [% SET filename = c("var/input_filename") _ '/' _ lang _ '.xpi'; %]
  6. shasum=$(grep '[% c("var/ff_arch") %]/xpi/[% lang %].xpi$' SHA512SUMS-[% c("version") %] | sed 's| [% c("var/ff_arch") %]/xpi/[% lang %].xpi$||')
  7. echo "$shasum [% filename %]" | sha512sum -c
  8. [% END %]
  9. mkdir -p [% dest_dir %]/[% c("filename") %]
  10. [% FOREACH lang = c('var/locales') %]
  11. [% SET lang = tmpl(lang) %]
  12. [% SET filename = c("var/input_filename") _ '/' _ lang _ '.xpi'; %]
  13. cp -a [% filename %] [% dest_dir %]/[% c("filename") %]/
  14. [% END %]