If you don't want to keep history of changes when you generate a new
release, then you have only to set option clearchangelog
to true.
|
Warning
|
This option is only available since stable release 1.6.0
|
-
<?php
-
require_once 'PEAR/PackageFileManager2.php';
-
-
PEAR::setErrorHandling(PEAR_ERROR_DIE);
-
-
$packagefile = 'C:/php/pear/PEAR_PackageFileManager/package2.xml';
-
-
$options = array('filelistgenerator' => 'cvs',
-
'packagedirectory' =>
dirname($packagefile),
-
'baseinstalldir' =>
'PEAR',
-
'clearchangelog' =>
true
-
);
-
-
$p2 =
&PEAR_PackageFileManager2::importOptions($packagefile, $options);
-
-
$p2->generateContents();
-
-
if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) {
-
$p2->writePackageFile();
-
} else
{
-
$p2->debugPackageFile();
-
}
-
?>