svn: /phpdoc/doc-base/trunk/ configure.php

From: Date: Sun, 25 Apr 2010 14:30:36 +0000
Subject: svn: /phpdoc/doc-base/trunk/ configure.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6466@lists.php.net to get a copy of this message
bjori Sun, 25 Apr 2010 14:30:36 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=298511 Log: Add --output option to save .manual.xml to a different file Changed paths: U phpdoc/doc-base/trunk/configure.php Modified: phpdoc/doc-base/trunk/configure.php =================================================================== --- phpdoc/doc-base/trunk/configure.php 2010-04-25 14:15:28 UTC (rev 298510) +++ phpdoc/doc-base/trunk/configure.php 2010-04-25 14:30:36 UTC (rev 298511) @@ -61,6 +61,8 @@ --with-partial=ID Root ID to build [{$acd['PARTIAL']}] --disable-broken-file-listing Do not ignore translated files in broken-files.txt + --output=FILENAME Save to given file (i.e. not .manual.xml) [{$acd['OUTPUT_FILENAME']}] + HELPCHUNK; } // }}} @@ -267,6 +269,7 @@ 'HOWTO' => 'no', 'USE_BROKEN_TRANSLATION_FILENAME' => 'yes', 'COPYRIGHT_YEAR' => date('Y'), + 'OUTPUT_FILENAME' => $srcdir . '/.manual.xml', ); // }}} $ac = $acd; @@ -375,6 +378,10 @@ $ac['basedir'] = $v; break; + case 'output': + $ac['OUTPUT_FILENAME'] = $v; + break; + case 'broken-file-listing': $ac['USE_BROKEN_TRANSLATION_FILENAME'] = $v; @@ -394,6 +401,9 @@ $ac['BASEDIR'] = $ac['basedir']; checkvalue($ac['srcdir']); +checking('for output filename'); +checkvalue($ac['OUTPUT_FILENAME']); + checking('whether to save an invalid .manual.xml'); checkvalue($ac['FORCE_DOM_SAVE']); @@ -625,10 +635,10 @@ exit(0); } // }}} -$mxml = "{$ac['srcdir']}/.manual.xml"; +$mxml = $ac["OUTPUT_FILENAME"]; if ($dom->validate()) { echo "done.\n"; - echo "\nAll good. Saving .manual.xml... "; + printf("\nAll good. Saving %s... ", basename($ac["OUTPUT_FILENAME"])); flush(STDOUT); $dom->save($mxml); @@ -647,7 +657,7 @@ // Allow the .manual.xml file to be created, even if it is not valid. if ($ac['FORCE_DOM_SAVE'] == 'yes') { - echo "writing .manual.xml anyway, and "; + printf("writing %s anyway, and ", basename($ac["OUTPUT_FILENAME"])); $dom->save($mxml); }

« previous php.doc.cvs (#6466) next »