incubator-zeta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jero...@apache.org
Subject [zeta-commits] svn commit: r1094967 - /incubator/zetacomponents/website/Pakefile
Date Tue, 19 Apr 2011 09:32:29 GMT
Author: jeromer
Date: Tue Apr 19 09:32:29 2011
New Revision: 1094967

URL: http://svn.apache.org/viewvc?rev=1094967&view=rev
Log:
- Added "website" target

Modified:
    incubator/zetacomponents/website/Pakefile

Modified: incubator/zetacomponents/website/Pakefile
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/website/Pakefile?rev=1094967&r1=1094966&r2=1094967&view=diff
==============================================================================
--- incubator/zetacomponents/website/Pakefile (original)
+++ incubator/zetacomponents/website/Pakefile Tue Apr 19 09:32:29 2011
@@ -359,6 +359,25 @@ function run_docs( $task, $args )
         $overviewFile, $overviewTxt, $overwrite = true
     );
 }
+
+pake_desc( 'Builds the website' );
+pake_task( 'website', 'checkout_wcv', 'extractphpdoc' );
+
+/**
+ * Builds the website
+ *
+ * @param pakeTask $task
+ * @param mixed $args
+ * @access public
+ * @return void
+ */
+function run_website( $task, $args )
+{
+    $options = pakeYaml::loadFile( CONFIG_FILE );
+    pake_sh( $options['php.path'] . ' scripts/updateCache.php' );
+    pake_sh( $options['php.path'] . ' var/scripts/highlight_source.php' );
+}
+
 /* ------ "Private" functions ----------- */
 
 /**



Mime
View raw message