mirror of
https://github.com/php/phd.git
synced 2026-03-23 22:52:05 +01:00
My face is red. $ only works in SVN. $ works in both.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!@php_bin@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
$base_revision = '$Rev$';
|
||||
$base_revision = '$Revision$';
|
||||
|
||||
/* {{{ Find the $ROOT directory of PhD. @php_dir@ will be replaced by the PEAR
|
||||
package manager. If for some reaosn this hasn't happened, fallback to the
|
||||
|
||||
@@ -82,7 +82,7 @@ abstract class PhDCommonOptionsParser extends PhDOptionParser
|
||||
{
|
||||
$color = PhDConfig::phd_info_color();
|
||||
$output = PhDConfig::phd_info_output();
|
||||
$rev = preg_replace('/\$Re[v](: ([\d.]+) ?)?\$$/e', "'\\1' == '' ? '??' : '\\2'", $GLOBALS['base_revision']);
|
||||
$rev = preg_replace('/\$Re[v](?:ision)?(: ([\d.]+) ?)?\$$/e', "'\\1' == '' ? '??' : '\\2'", $GLOBALS['base_revision']);
|
||||
fprintf($output, "%s\n", term_color($this->getTitleText(), $color));
|
||||
fprintf($output, "%s\n", term_color("PhD Version: " . PHD_VERSION . " (" . $rev . ")", $color));
|
||||
fprintf($output, "%s\n", term_color("Copyright(c) 2008 The PHP Documentation Group", $color));
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!@php_bin@
|
||||
<?php
|
||||
/* $Id$ */
|
||||
$base_revision = '$Rev$';
|
||||
$base_revision = '$Revision$';
|
||||
|
||||
/* {{{ Find the $ROOT directory of PhD
|
||||
@php_dir@ will be replaced by the pear package manager
|
||||
|
||||
Reference in New Issue
Block a user