-
Notifications
You must be signed in to change notification settings - Fork 35
/
package_sqlsrv.php
53 lines (45 loc) · 1.67 KB
/
package_sqlsrv.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$version = '1.5.0b4';
$state = 'beta';
$notes = <<<EOT
QA release
- Added SQLSRV_SQLTYPE_TIMESTAMP database attribute support [davidc] [genericbob]
- Fixed bug #17413: Infinite loop on connection error
- Bug #19314 typo in _checkSequence()
EOT;
$description = 'This is the SQL Server MDB2 driver.';
$packagefile = './package_sqlsrv.xml';
$options = array(
'filelistgenerator' => 'svn',
'changelogoldtonew' => false,
'simpleoutput' => true,
'baseinstalldir' => '/',
'packagedirectory' => './',
'packagefile' => $packagefile,
'clearcontents' => false,
'include' => array('*sqlsrv*'),
'ignore' => array('package_sqlsrv.php'),
);
$package = PEAR_PackageFileManager2::importOptions($packagefile, $options);
$package->setPackageType('php');
$package->clearDeps();
$package->setPhpDep('5.2.0');
$package->setPearInstallerDep('1.9.1');
$package->addPackageDepWithChannel('required', 'MDB2', 'pear.php.net', '2.5.0b4');
$package->addExtensionDep('required', 'sqlsrv');
$package->addRelease();
$package->generateContents();
$package->setReleaseVersion($version);
$package->setAPIVersion($version);
$package->setReleaseStability($state);
$package->setAPIStability($state);
$package->setNotes($notes);
$package->setDescription($description);
$package->addGlobalReplacement('package-info', '@package_version@', 'version');
if (isset($_GET['make']) || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')) {
$package->writePackageFile();
} else {
$package->debugPackageFile();
}