<?php include 'common.php'; echo versionGet();
queryE("\n INSERT INTO `" . $tbl_article_tag . "`\n SET\n `" . $tbl_article . "_id` = " . $article_id . ",\n `" . $tbl_tag . "_id` = " . $tag_id . ",\n `" . $tbl_site . "_id` = " . $info["site_id"] . "\n "); } } } flush(); } /****************************************************************************** *** save php.js ******************************************************************************/ $copyright_portions = " * Portions copyright " . implode(", ", $all_authors); $copyright_portions = wordwrap($copyright_portions, 75, "\n * ", false); // Determine version $version_file = dirname(__FILE__) . "/pj_vers.dat"; $osource = file_get_contents($codedir . "/php.js"); $nsource = $total_code; $overs = versionGet($version_file); $nvers = versionUpgrade($overs, $osource, $nsource); //echo $overs."\n"; //echo $nvers."\n"; versionPut($version_file, $nvers); $hvers = versionFormat($nvers); //echo $nvers."\n"; // Copyright Banner $copyright = ""; $copyright .= "/* \n"; $copyright .= " * More info at: http://kevin.vanzonneveld.net/techblog/article/phpjs_licensing/\n"; $copyright .= " * \n"; $copyright .= " * This is version: " . $hvers . "\n"; $copyright .= " * php.js is copyright 2008 Kevin van Zonneveld.\n"; $copyright .= " * \n"; $copyright .= $copyright_portions . "\n";
<?php include 'common.php'; $count = versionGet(); // And since we knoweth that we shall be incrementing the counter, we shall do so $count++; // And changeth be the class file fsnr(__DIR__ . '/../../newsrc/code/components/com_acctexp/acctexp.class.php', "define( '_AEC_REVISION', '", $count); shell_exec('git add newsrc/code/components/com_acctexp/acctexp.class.php'); // And the xml file fsnr(__DIR__ . '/../build/build.xml', '<property name="git.lastrevision" value="', $count); shell_exec('git add scripts/build/build.xml');