Reader small image

You're reading from  The PEAR Installer Manifesto

Product typeBook
Published inOct 2006
Reading LevelBeginner
PublisherPackt
ISBN-139781904811190
Edition1st Edition
Languages
Right arrow
Author (1)
Gregory Beaver
Gregory Beaver
author image
Gregory Beaver

Gregory Beaver has been one of the most active contributors to open-source PHP development since 2001. As the primary developer of important infrastructure software such as phpDocumentor, the PEAR installer, PHP_Archive, PHP_LexerGenerator, and PHP_ParserGenerator as well as co-lead of the Phar PHP extension, Gregory has helped to ease the development needs of PHP developers around the world. After he transformed phpDocumentor from a small project into the most advanced auto-documentation tools for PHP, phpDocumentor was voted second best PHP tool in Germany-based PHP Magazin's 2003 Reader's Choice awards list for best PHP application, and voted third best PEAR package (http://tinyurl.com/bn7pb). Currently, he is working to refactor the PEAR installer for PHP 6, as well as helping to lead the PEAR community forward. Gregory blogs about his programming escapades and other news on his blog, Lot 49 (http://greg.chiaraquartet.net). Gregory also leads a mysterious double life as the cellist of the internationally renowned Chiara String Quartet (http://www.chiaraquartet.net) with whom he tours the world. He lives in Lincoln, Nebraska where he is a full-time lecturer/artist-in-residence at the University of Nebraska-Lincoln Hixson-Lied College of Fine Arts.
Read more about Gregory Beaver

Right arrow

File/Directory Attributes: name, role, and baseinstalldir


The<file> and<dir> tags have a number of options available to them. Both tags require a name attribute, defining the name of the element as located on disk. Unlike an operating system, package.xml does not allow empty directories. All<dir> tags must contain at least one<file> tag. As described in the previous section, there are two ways to describe the location of a file in package.xml, either with a complete relative path separated by the UNIX path separator /:

<file role="php" name="foo/test.php"/>

Or, alternately as:

<dir name="foo">
<file role="php" name="test.php"/>
</dir>

All files must have a role attribute. This attribute tells the installer how to handle a file. The default list of allowed file roles is:

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
The PEAR Installer Manifesto
Published in: Oct 2006Publisher: PacktISBN-13: 9781904811190

Author (1)

author image
Gregory Beaver

Gregory Beaver has been one of the most active contributors to open-source PHP development since 2001. As the primary developer of important infrastructure software such as phpDocumentor, the PEAR installer, PHP_Archive, PHP_LexerGenerator, and PHP_ParserGenerator as well as co-lead of the Phar PHP extension, Gregory has helped to ease the development needs of PHP developers around the world. After he transformed phpDocumentor from a small project into the most advanced auto-documentation tools for PHP, phpDocumentor was voted second best PHP tool in Germany-based PHP Magazin's 2003 Reader's Choice awards list for best PHP application, and voted third best PEAR package (http://tinyurl.com/bn7pb). Currently, he is working to refactor the PEAR installer for PHP 6, as well as helping to lead the PEAR community forward. Gregory blogs about his programming escapades and other news on his blog, Lot 49 (http://greg.chiaraquartet.net). Gregory also leads a mysterious double life as the cellist of the internationally renowned Chiara String Quartet (http://www.chiaraquartet.net) with whom he tours the world. He lives in Lincoln, Nebraska where he is a full-time lecturer/artist-in-residence at the University of Nebraska-Lincoln Hixson-Lied College of Fine Arts.
Read more about Gregory Beaver

Default File Roles

 

Role

Description

php

PHP script files, like "PEAR.php"

data

Data files used by the script (read-only)

doc

Documentation files

test

Test scripts...