From a1cc0f1c6d86ab37a5b3e69cda8bbf3297b38409 Mon Sep 17 00:00:00 2001 From: Gaetano Giunta Date: Fri, 13 Jul 2012 17:31:44 +0200 Subject: [PATCH] Implement task generate-html-changelog --- pakefile.php | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/pakefile.php b/pakefile.php index b641890..a64cb0f 100644 --- a/pakefile.php +++ b/pakefile.php @@ -366,8 +366,55 @@ function run_generate_html_changelog( $task=null, $args=array(), $cliopts=array( $filename = eZPCPBuilder::changelogFilename( $opts ); $file = pake_read_file( $changelogdir . '/' . $filename ); + $htmlfile = array(); + $mode = null; + foreach( explode( "\n", $file ) as $line ) + { + switch( $line ) + { + case "Bugfixes": + $mode = 'wit'; + $htmlfile[] = '

' . $line . '

' . $line . '

' . $line . '

' . $line . '

'; + $htmlfile = implode( "\n", $htmlfile ); - pake_echo( 'TO DO: build html version of changelog' ); + pake_echo( $htmlfile ); } /**