link releases to tags in CVS

This commit is contained in:
Michal Čihař
2006-04-20 15:28:38 +00:00
parent ca1026a293
commit 1ac36fe3b7
2 changed files with 8 additions and 3 deletions

View File

@@ -4,7 +4,6 @@
* Simple script to set correct charset for changelog
*
* @id $Id$
* @todo link release tags
*/
$changelog = htmlspecialchars(file_get_contents('ChangeLog'));
@@ -50,7 +49,13 @@ $replaces = array(
'/((CAN|CVE)-[0-9]+-[0-9]+)/'
=> '<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=\\1">\\1</a>',
// Highlight releases
// Highlight releases (with links)
'/(( ### )(([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+) (.*)))/'
=> '<a name="\\4_\\5_\\6_\\7"></a>\\2<a href="http://cvs.sourceforge.net/viewcvs.py/phpmyadmin/phpMyAdmin/?only_with_tag=RELEASE_\\4_\\5_\\6_\\7">\\4.\\5.\\6.\\7 \\8</a>',
'/(( ### )(([0-9]+)\.([0-9]+)\.([0-9]+) (.*)))/'
=> '<a name="\\4_\\5_\\6"></a>\\2<a href="http://cvs.sourceforge.net/viewcvs.py/phpmyadmin/phpMyAdmin/?only_with_tag=RELEASE_\\4_\\5_\\6">\\4.\\5.\\6 \\7</a>',
// Highlight releases (not linkable)
'/( ### )(.*)/'
=> '\\1<b>\\2</b>',