HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/release2-tag.php
Go to the documentation of this file.
00001 <?php
00002 
00003 // Tags releases
00004 
00005 if (php_sapi_name() != 'cli') {
00006     echo 'Release script cannot be called from web-browser.';
00007     exit;
00008 }
00009 
00010 require 'svn.php';
00011 
00012 $svn_info = my_svn_info('.');
00013 
00014 $version = trim(file_get_contents('VERSION'));
00015 
00016 $trunk_url  = $svn_info['Repository Root'] . '/htmlpurifier/trunk';
00017 $trunk_tag_url  = $svn_info['Repository Root'] . '/htmlpurifier/tags/' . $version;
00018 
00019 echo "Tagging trunk to tags/$version...";
00020 passthru("svn copy --message \"Tag $version release.\" $trunk_url $trunk_tag_url");
00021 
00022 // vim: et sw=4 sts=4