update_responses_config 561 B

12345678910111213
  1. #!/bin/bash
  2. [% c("var/set_default_env") -%]
  3. cat > [% shell_quote(c("basedir")) %]/tools/update-responses/config.yml << 'EOF'
  4. [% INCLUDE update_responses_config.yml -%]
  5. EOF
  6. [% IF ! c("var/nightly") -%]
  7. # Update / create symlink $torbrowser_version -> $torbrowser_version-buildN
  8. versiondir=[% shell_quote(path(dest_dir)) _ '/' _ c("var/signed_status") _ '/' _ c("version") %]
  9. test -L "$versiondir" && rm -f "$versiondir"
  10. test -d "$versiondir" || ln -s [% shell_quote(c("version")) %]-[% shell_quote(c("var/torbrowser_build")) %] "$versiondir"
  11. [% END -%]