Prepended constants with C_ to avoid reserved words as per https://www.php.net/manual...
[htmlpurifier/darkodev.git] / release2-tag.php
blob25e5300d813551a5c3ad433a577fe7780d0599a0
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 = my_svn_info('.');
14 $version = trim(file_get_contents('VERSION'));
16 $trunk_url = $svn_info['Repository Root'] . '/htmlpurifier/trunk';
17 $trunk_tag_url = $svn_info['Repository Root'] . '/htmlpurifier/tags/' . $version;
19 echo "Tagging trunk to tags/$version...";
20 passthru("svn copy --message \"Tag $version release.\" $trunk_url $trunk_tag_url");
22 // vim: et sw=4 sts=4