Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
532 B

  1. <?php
  2. // Tags releases
  3. if (php_sapi_name() != 'cli') {
  4. echo 'Release script cannot be called from web-browser.';
  5. exit;
  6. }
  7. require 'svn.php';
  8. $svn_info = my_svn_info('.');
  9. $version = trim(file_get_contents('VERSION'));
  10. $trunk_url = $svn_info['Repository Root'] . '/htmlpurifier/trunk';
  11. $trunk_tag_url = $svn_info['Repository Root'] . '/htmlpurifier/tags/' . $version;
  12. echo "Tagging trunk to tags/$version...";
  13. passthru("svn copy --message \"Tag $version release.\" $trunk_url $trunk_tag_url");
  14. // vim: et sw=4 sts=4