PHPonTrax
[ class tree: PHPonTrax ] [ index: PHPonTrax ] [ all elements ]

Procedural File: makepkg.php

Source Location: /makepkg.php



Page Details:

Make a Pear installable package of the PHPonTrax distribution

(PHP 5)

To make a package, connect to the top directory and type php makepkg.php (or on Unix-type systems, ./makepkg.php). Information about how to build the package and what to put in it comes from two sources: this script, and the information maintained by Subversion in the various .svn directories that identifies which files are part of the distribution.

Requires Pear package PEAR_PackageFileManager . The Subversion plugin uses XML_Tree . Unfortunately XML_Tree has a couple of methods named clone which is a reserved word in PHP 5. The fix is easy, just edit XML_Tree to change every use of 'clone' to 'clone4'.

PackageFileManager has several undocumented limitations that seriously affect what you can do with it:

  • PackageFileManager will not add an empty directory to a package. Therefore you need to put at least one file in any directory that is to go into a package.
  • The Pear Installer will not install an empty file. Therefore you need to put at least one character into any file to be installed as part of a package.
  • The PackageFileManager options 'include' and 'ignore' use a regular expression match to identify the files and directories that they affect. For each file and directory managed by Subversion, PackageFileManager first attempts to apply the RE pattern as coded. Then it appends leading and trailing '/' to the pattern and tries again. The results are hard to predict.




Tags:

filesource:  Source Code for this file
author:  Walt Haas <haas@xmission.com>
version:  $Id$
copyright:  (c) Walter O. Haas 2006
license:  GNU Public License


Includes:

require_once('PEAR/PackageFileManager.php') [line 50]
require_once('PEAR/Packager.php') [line 51]






Documentation generated on Thu, 04 May 2006 19:47:51 -0600 by phpDocumentor 1.3.0RC4