-
Notifications
You must be signed in to change notification settings - Fork 19
/
buildpackage.php
67 lines (58 loc) · 1.98 KB
/
buildpackage.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* Generates the package.xml for Geeklog_FCKeditor component.
*
* @author Christian Weiske <cweiske@cweiske.de>
*/
require_once 'PEAR/PackageFileManager2.php';
//using this, we don't need to do any error handling ourselves
PEAR::setErrorHandling(PEAR_ERROR_DIE);
/* don't modify this */
// Directory where the package files are located.
$packagedir = dirname(__FILE__);
$glDir = realpath(dirname(__FILE__).'/../../');
/**
* Spamx configuration file
*/
require $packagedir . '/config.php';
$channel = 'pear.geeklog.net';
$category = 'Geeklog Plugins';
$package = 'Geeklog_Plugin_Spamx';
// Should be actual FCKeditor version number to avoid any confusion
$version = $_SPX_CONF['version'];
$summary = <<<EOT
Spamx Plugin for Geeklog 1.x
EOT;
$description = <<<EOT
Spamx Plugin for Geeklog 1.x
EOT;
$license = 'GPL';
$notes = 'Initial Release';
// Instanciate package file manager
$pkg = new PEAR_PackageFileManager2();
// Setting options
$e = $pkg->setOptions(
array(
'packagefile' => 'package-spamx.xml',
'packagedirectory' => $glDir . DIRECTORY_SEPARATOR,
'outputdirectory' => $glDir . DIRECTORY_SEPARATOR,
'baseinstalldir' => 'Geeklog',
'pathtopackagefile' => dirname(__FILE__),
'filelistgenerator' => 'CVS',
'ignore' => array(
'buildpackage*.php',
'package.xml',
'*.tgz'
),
'include' => array(
$packagedir . '/',
$glDir.'/public_html/spamx/',
$glDir . '/public_html/admin/plugins/spamx/'
),
'simpleoutput' => true,
'dir_roles' => array('*' => 'web'),
'roles' => array('*' => 'web'),
)
);
include $glDir . '/system/build/buildpackage-end.php';
?>