cvs: peardoc / configure.php /entities .cvsignore version.ent version.ent.in
| From: | Christian Weiske | Date: | Sat, 08 Nov 2008 08:01:41 +0000 |
| Subject: | cvs: peardoc / configure.php /entities .cvsignore version.ent version.ent.in | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-11252@lists.php.net to get a copy of this message | ||
cweiske Sat Nov 8 08:01:41 2008 UTC
Added files:
/peardoc/entities .cvsignore version.ent.in
Removed files:
/peardoc/entities version.ent
Modified files:
/peardoc configure.php
Log:
- Drop version.ent and add version.ent.in
- Automatically update date in version.ent when configuring
http://cvs.php.net/viewvc.cgi/peardoc/configure.php?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/configure.php
diff -u peardoc/configure.php:1.2 peardoc/configure.php:1.3
--- peardoc/configure.php:1.2 Tue Oct 14 05:46:52 2008
+++ peardoc/configure.php Sat Nov 8 08:01:41 2008
@@ -14,10 +14,14 @@
$opts = parseArgs();
$GLOBALS['display_verbose'] = $opts['verbose'];
try {
+ createVersionEnt('entities/version.ent');
createChaptersEnt($opts['language'], $opts['display_untranslated']);
createGiant($opts['giant_file'], $opts['validate'],
$opts['hide_xml_errors']);
logMsg('Now call phd:');
- logMsg(' phd -f xhtml -t pearchunkedhtml -o build -d ' .
$opts['giant_file']);
+ logMsg(' phd -f xhtml -t pearchunkedhtml'
+ . ' -o build/' . $opts['language']
+ . ' -d ' . $opts['giant_file']
+ );
} catch (Exception $e) {
logMsg('Exception:');
logMsg($e->getMessage());
@@ -35,7 +39,7 @@
require_once 'Console/CommandLine.php';
$parser = new Console_CommandLine(array(
'description' => 'configure the pear manual build',
- 'version' => '$Id: configure.php,v 1.2 2008/10/14 05:46:52 cweiske
Exp $'
+ 'version' => '$Id: configure.php,v 1.3 2008/11/08 08:01:41 cweiske
Exp $'
));
$parser->addOption('verbose', array(
@@ -93,6 +97,17 @@
}
}
+function createVersionEnt($entitiesfile)
+{
+ file_put_contents(
+ $entitiesfile,
+ str_replace(
+ '@PEARDOC_BUILD_DATE@', date('Y-m-d'),
+ file_get_contents($entitiesfile . '.in')
+ )
+ );
+}
+
/**
* Create the chapters.ent file which contains entity references
* to every manual file.
http://cvs.php.net/viewvc.cgi/peardoc/entities/.cvsignore?view=markup&rev=1.1
Index: peardoc/entities/.cvsignore
+++ peardoc/entities/.cvsignore
version.ent
http://cvs.php.net/viewvc.cgi/peardoc/entities/version.ent.in?view=markup&rev=1.1
Index: peardoc/entities/version.ent.in
+++ peardoc/entities/version.ent.in
<!ENTITY peardoc.build-date "@PEARDOC_BUILD_DATE@">