Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 39363b6

Browse files
committedJan 14, 2012
New version handling, cleanup in package xml for autogeneration of file list
1 parent e42248c commit 39363b6

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed
 

‎package.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,8 @@
3131
<contents>
3232
<!-- The main contents is dynamically added by the package builder task -->
3333
<dir name="/">
34-
<dir name="TheSeer">
35-
<dir name="phpDox">
36-
<file baseinstalldir="/" name="CLI.php" role="php" />
37-
</dir>
38-
</dir>
3934
<file baseinstalldir="/" name="phpdox.php" role="script">
40-
<tasks:replace from="(development)" to="version" type="package-info" />
35+
<tasks:replace from="%development%" to="version" type="package-info" />
4136
<tasks:replace from="/usr/bin/env php" to="php_bin" type="pear-config"/>
4237
<tasks:replace from="@php_bin@" to="php_bin" type="pear-config" />
4338
</file>

‎pear.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ mkdir -p tmp/TheSeer/phpDox/templates
44
cp -r src/* tmp/TheSeer/phpDox
55
cp -r templates/* tmp/TheSeer/phpDox/templates
66
cp phpdox.bat tmp
7+
cp phpdox.php tmp
78
cd tmp
89
php ../../DirectoryScanner/samples/pear-package.php ../package.xml . | xmllint --format - > package.xml
910
pear package

‎phpdox.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
*
4141
*/
4242

43-
define('PHPDOX_VERSION', '(development)');
43+
define('PHPDOX_VERSION', '%development%');
4444

4545
require 'TheSeer/DirectoryScanner/autoload.php';
4646
require 'TheSeer/fDOMDocument/autoload.php';
@@ -49,7 +49,7 @@
4949
require 'PHP/Timer.php';
5050
require 'pdepend/reflection/Autoloader.php';
5151

52-
if (PHPDOX_VERSION == '(development)') {
52+
if (strpos(PHPDOX_VERSION, '%devel')===0) {
5353
require __DIR__ . '/src/autoload.php';
5454
} else {
5555
require 'TheSeer/phpDox/autoload.php';

0 commit comments

Comments
 (0)
Please sign in to comment.