You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-commits@incubator.apache.org by je...@apache.org on 2011/04/14 04:36:56 UTC
[zeta-commits] svn commit: r1092000 - /incubator/zetacomponents/website/Pakefile
Author: jeromer
Date: Thu Apr 14 04:36:56 2011
New Revision: 1092000
URL: http://svn.apache.org/viewvc?rev=1092000&view=rev
Log:
- Replaced pake_echo by pake_echo_comment
# Thanks Alexey Zakhlestin
Modified:
incubator/zetacomponents/website/Pakefile
Modified: incubator/zetacomponents/website/Pakefile
URL: http://svn.apache.org/viewvc/incubator/zetacomponents/website/Pakefile?rev=1092000&r1=1091999&r2=1092000&view=diff
==============================================================================
--- incubator/zetacomponents/website/Pakefile (original)
+++ incubator/zetacomponents/website/Pakefile Thu Apr 14 04:36:56 2011
@@ -27,7 +27,7 @@ function run_builddir($task, $args)
if( is_dir( $buildDir ) )
{
- pake_echo( "Removing ${buildDir}/*" );
+ pake_echo_comment( "Removing ${buildDir}/*" );
$rule = pakeFinder::type('any')->name('*')
->ignore_version_control();
pake_remove( $rule, $buildDir );
@@ -89,7 +89,7 @@ function run_phpdoc( $task, $args )
{
$options = pakeYaml::loadFile( CONFIG_FILE );
- pake_echo( 'Building PHPDoc for ' . $options['build.name'] );
+ pake_echo_comment( 'Building PHPDoc for ' . $options['build.name'] );
$command = $options['php.path'] . ' -d "memory_limit=2500M" -d "xdebug.default_enable=0" '
. $options['phpdoc.path'] . ' '
@@ -136,10 +136,10 @@ function run_phpdoc( $task, $args )
mkdir( $targetDir, 0755 );
}
- pake_echo( 'Copying tarball' );
+ pake_echo_comment( 'Copying tarball' );
copy( $tarball, $targetDir . '/' . $options['build.name'] . '.tar.bz2' );
- pake_echo( 'Removing tarball' );
+ pake_echo_comment( 'Removing tarball' );
ezcBaseFile::removeRecursive( $options['build.dir'] . '/phpdoc/' );
}
@@ -158,7 +158,7 @@ function define_config_file()
if( getenv( 'ZETA_PAKE_FILE' ) and file_exists( getenv( 'ZETA_PAKE_FILE' ) ) )
{
$yamlFile = getenv( 'ZETA_PAKE_FILE' );
- pake_echo( "Using custom config file ${yamlFile}" );
+ pake_echo_comment( "Using custom config file ${yamlFile}" );
}
define( 'CONFIG_FILE', $yamlFile );
@@ -203,7 +203,7 @@ function move_html_files( $baseDir )
list( $unused, $newFile, $component ) = $matches;
$destination = "${baseDir}/${component}/${newFile}.html";
- pake_echo( "Moving ${HTMLFile} to ${destination}" );
+ pake_echo_comment( "Moving ${HTMLFile} to ${destination}" );
rename( $HTMLFile, $destination );
}
}
@@ -240,7 +240,7 @@ function shorten_long_filenames( $baseDi
// a "meaningful" URL for SEO.
$newHTMLFile = str_replace( $token, '', $baseName );
- pake_echo( "Renaming ${baseName} to\n ${newHTMLFile}" );
+ pake_echo_comment( "Renaming ${baseName} to\n ${newHTMLFile}" );
rename( $HTMLFile, dirname( $HTMLFile ) . '/' . $newHTMLFile );
@@ -292,7 +292,7 @@ function create_bz2_archive( $archiveNam
}
$PHPDocFiles = ezcBaseFile::findRecursive( $directory, array( "/(.*)/" ) );
- pake_echo( "Creating ${archiveName}" );
+ pake_echo_comment( "Creating ${archiveName}" );
$tarball = ezcArchive::open(
"compress.bzip2://${archiveName}",