From: andi <bin...@li...> - 2001-09-21 18:19:08
|
andi Fri Sep 21 11:19:02 2001 EDT Added files: /r2/binarycloud/base/utils compiletags.php Log: Added script that acts similar to xml2php. It uses BCTagParser to compile bc:tags to whatever you specified in the tag-compile-functions. See BCTagParser for more info. Index: r2/binarycloud/base/utils/compiletags.php +++ r2/binarycloud/base/utils/compiletags.php #!/usr/local/php4/bin/php -q <?php // {{{ Header /* * -File $Id: compiletags.php,v 1.1 2001/09/21 18:19:02 andi Exp $ * -License LGPL (http://www.gnu.org/copyleft/lesser.html) * -Copyright 2001, Intacct Corp. * -Author odysseas tsatalos, ody...@ya... * -Author Andris Spruds, an...@do... * -Author Andreas Aderhold an...@bi... */ // }}} // {{{ $strSyntax = "Usage: $argv[0] buildpath infile outfile\n"; $argv = $HTTP_SERVER_VARS['argv']; if ( sizeof($argv) != 4 ) { die($strSyntax); } $buildPath=$argv[1]; include_once($buildPath. '/prepend.php'); import('binarycloud.lib.XMLUtils'); import('binarycloud.lib.BCTagParser'); $in = realpath($argv[2]); $out = $argv[3]; // setup parser and engage $xml =& new BCTagParser($in, $out); $xml->RegisterTag('BC:MODULE', "BCCompileModuleTag"); $xml->RegisterTag('BC:IMG', "BCCompileImgTag"); $xml->Compile(); // }}} end ?> |