Have tests also check for test-settings in conf file, this allows for configuration...
[htmlpurifier/rdancer.git] / release3-tag.php
blob3c0a4ee9a0ee25ead31168e2a1dbdb62dc21ca48
1 <?php
3 // Tags releases
5 if (php_sapi_name() != 'cli') {
6 echo 'Release script cannot be called from web-browser.';
7 exit;
10 require 'svn.php';
12 $svn_info = svn_info('.');
14 $version = trim(file_get_contents('VERSION'));
16 $trunk_url = $svn_info['Repository Root'] . '/htmlpurifier/trunk';
17 $strict_url = $svn_info['Repository Root'] . '/htmlpurifier/branches/strict';
18 $trunk_tag_url = $svn_info['Repository Root'] . '/htmlpurifier/tags/' . $version;
19 $strict_tag_url = $svn_info['Repository Root'] . '/htmlpurifier/tags/' . $version . '-strict';
21 echo "Tagging trunk to tags/$version...";
22 passthru("svn copy --message \"Tag $version release.\" $trunk_url $trunk_tag_url");
23 echo "Tagging strict to tags/$version-strict...";
24 passthru("svn copy --message \"Tag $version-strict release.\" $strict_url $strict_tag_url");