-
Notifications
You must be signed in to change notification settings - Fork 19
/
buildpackage.php
70 lines (60 loc) · 2.21 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
68
69
70
<?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__).'/../../');
/**
* Static page configuration file
*/
require $packagedir . '/config.php';
$channel = 'pear.geeklog.net';
$category = 'Geeklog Plugins';
$package = 'Geeklog_Plugin_Staticpages';
// Should be actual FCKeditor version number to avoid any confusion
$version = $_SP_CONF['version'];
$summary = <<<EOT
Staticpages Plugin for Geeklog 1.x
EOT;
$description = <<<EOT
Staticpages 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-staticpages.xml',
'packagedirectory' => $glDir . DIRECTORY_SEPARATOR,
'baseinstalldir' => 'Geeklog',
'outputdirectory' => $glDir . DIRECTORY_SEPARATOR,
'pathtopackagefile' => dirname(__FILE__),
'filelistgenerator' => 'CVS',
'ignore' => array(
'buildpackage*.php',
'package.xml',
'*.tgz'
),
'include' => array(
$packagedir . '/',
$glDir.'/public_html/staticpages/',
$glDir . '/public_html/admin/plugins/staticpages/',
$glDir . '/public_html/javascript/staticpages_fckeditor.js',
),
'simpleoutput' => true,
'dir_roles' => array('*' => 'web'),
'roles' => array('*' => 'web'),
)
);
$pkg->addPackageDepWithChannel('required', 'Geeklog_FCKeditor', 'pear.geeklog.net', '2.3.1');
include $glDir . '/system/build/buildpackage-end.php';
?>