diff --git a/NEWS b/NEWS index 089922f0..503429fc 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,8 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier . Internal change ========================== +1.7.0, unknown release date + 1.6.0, released 2007-04-01 ! Support for most common deprecated attributes via transformations: + bgcolor in td, th, tr and table diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..ce6a70b9 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.6.0 \ No newline at end of file diff --git a/WHATSNEW b/WHATSNEW new file mode 100644 index 00000000..4d082b0f --- /dev/null +++ b/WHATSNEW @@ -0,0 +1,5 @@ +The 1.6.0 release, code-named Long-Overdue, contains added support +for a number of deprecated attributes HTML Purifier should have +had from the very beginning, including the name, bgcolor, border, +width and height attributes. The CSS property 'height', +rel and rev attributes, ID blacklist regexps are also available. \ No newline at end of file diff --git a/package.php b/package.php index 8ee09e55..622c1f93 100644 --- a/package.php +++ b/package.php @@ -29,15 +29,18 @@ $pkg->setDescription( $pkg->addMaintainer('lead', 'edwardzyang', 'Edward Z. Yang', 'htmlpurifier@jpsband.org', 'yes'); +$version = file_get_contents('VERSION'); +$api_version = substr($version, 0, strrpos($version, '.')); + $pkg->setChannel('hp.jpsband.org'); -$pkg->setAPIVersion('1.5'); +$pkg->setAPIVersion($api_version); $pkg->setAPIStability('stable'); -$pkg->setReleaseVersion('1.5.0'); +$pkg->setReleaseVersion($version); $pkg->setReleaseStability('stable'); $pkg->addRelease(); -$pkg->setNotes('Major bugs were fixed and some major internal refactoring was undertaken. The visible changes include XHTML 1.1-style modularization of HTMLDefinition, rudimentary internationalization, and a fix for a fatal error when the PHP4 DOM XML extension was loaded. The x subtag is now allowed in language codes. Element by element AllowedAttribute declaration is now possible for global attributes. Instead of *.class, you can write span.class. The old syntax still works, and enables the attribute for all elements.'); +$pkg->setNotes(file_get_contents('WHATSNEW')); $pkg->setPackageType('php'); $pkg->setPhpDep('4.3.9'); diff --git a/release.php b/release.php new file mode 100644 index 00000000..c3ab0d84 --- /dev/null +++ b/release.php @@ -0,0 +1,82 @@ + 1) { + echo 'More than one release declaration in NEWS replaced' . PHP_EOL; + exit; +} +file_put_contents('NEWS', $news_c); + +// ...in Doxyfile +$doxyfile_c = preg_replace( + '/(?<=PROJECT_NUMBER {9}= )[^\s]+/m', // brittle + $version, + file_get_contents('Doxyfile'), + 1, $c +); +if (!$c) { + echo 'Could not update Doxyfile, missing PROJECT_NUMBER.' . PHP_EOL; + exit; +} +file_put_contents('Doxyfile', $doxyfile_c); + +// ...in HTMLPurifier.php +$htmlpurifier_c = file_get_contents('library/HTMLPurifier.php'); +$htmlpurifier_c = preg_replace( + '/HTML Purifier .+? - /', + "HTML Purifier $version - ", + $htmlpurifier_c, + 1, $c +); +if (!$c) { + echo 'Could not update HTMLPurifier.php, missing HTML Purifier [version] header.' . PHP_EOL; + exit; +} +$htmlpurifier_c = preg_replace( + '/var \$version = \'.+?\';/', + "var \$version = '$version';", + $htmlpurifier_c, + 1, $c +); +if (!$c) { + echo 'Could not update HTMLPurifier.php, missing var $version.' . PHP_EOL; + exit; +} +file_put_contents('library/HTMLPurifier.php', $htmlpurifier_c); + +echo "Review changes, write something in WHATSNEW, and then SVN commit with log 'Release $version.'" . PHP_EOL; + +?> \ No newline at end of file