build 723 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. distdir=/var/tmp/dist/[% project %]
  4. mkdir -p $distdir
  5. cd $distdir
  6. tar -xkf $rootdir/[% c('input_files_by_name/tor') %]
  7. cd tor
  8. mkdir pluggable_transports && cd pluggable_transports
  9. tar -xkf $rootdir/[% c('input_files_by_name/obfs4') %]
  10. tar -xkf $rootdir/[% c('input_files_by_name/snowflake') %]
  11. # copy in bridge lines for each pluggable transport
  12. mv $rootdir/bridges_list.obfs4.txt .
  13. mv $rootdir/bridges_list.meek-azure.txt .
  14. mv $rootdir/bridges_list.snowflake.txt .
  15. cd $distdir
  16. [%
  17. SET tar_src = [ "tor", "data" ];
  18. IF c("var/linux");
  19. tar_src.push("debug");
  20. END;
  21. c('tar', {
  22. tar_src => tar_src,
  23. tar_args => '-czvf' _ dest_dir _ '/' _ c('filename'),
  24. });
  25. %]