ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
package.php
Go to the documentation of this file.
1<?php
2
3set_time_limit(0);
4
5require_once 'PEAR/PackageFileManager2.php';
6require_once 'PEAR/PackageFileManager/File.php';
8$pkg = new PEAR_PackageFileManager2;
9
10$pkg->setOptions(
11 array(
12 'baseinstalldir' => '/',
13 'packagefile' => 'package.xml',
14 'packagedirectory' => realpath(dirname(__FILE__) . '/library'),
15 'filelistgenerator' => 'file',
16 'include' => array('*'),
17 'dir_roles' => array('/' => 'php'), // hack to put *.ser files in the right place
18 'ignore' => array(
19 'HTMLPurifier.standalone.php',
20 'HTMLPurifier.path.php',
21 '*.tar.gz',
22 '*.tgz',
23 'standalone/'
24 ),
25 )
26);
27
28$pkg->setPackage('HTMLPurifier');
29$pkg->setLicense('LGPL', 'http://www.gnu.org/licenses/lgpl.html');
30$pkg->setSummary('Standards-compliant HTML filter');
31$pkg->setDescription(
32 'HTML Purifier is an HTML filter that will remove all malicious code
33 (better known as XSS) with a thoroughly audited, secure yet permissive
34 whitelist and will also make sure your documents are standards
35 compliant.'
36);
37
38$pkg->addMaintainer('lead', 'ezyang', 'Edward Z. Yang', 'admin@htmlpurifier.org', 'yes');
39
40$version = trim(file_get_contents('VERSION'));
41$api_version = substr($version, 0, strrpos($version, '.'));
42
43$pkg->setChannel('htmlpurifier.org');
44$pkg->setAPIVersion($api_version);
45$pkg->setAPIStability('stable');
46$pkg->setReleaseVersion($version);
47$pkg->setReleaseStability('stable');
48
49$pkg->addRelease();
50
51$pkg->setNotes(file_get_contents('WHATSNEW'));
52$pkg->setPackageType('php');
53
54$pkg->setPhpDep('5.0.0');
55$pkg->setPearinstallerDep('1.4.3');
56
57$pkg->generateContents();
58
59$pkg->writePackageFile();
60
61// vim: et sw=4 sts=4
const PEAR_ERROR_PRINT
Definition: PEAR.php:32
An exception for terminatinating execution or to throw for unit testing.
static setErrorHandling($mode=null, $options=null)
Sets how errors generated by this object should be handled.
Definition: PEAR.php:337
$version
Definition: package.php:40
$pkg
Definition: package.php:8
$api_version
Definition: package.php:41