Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: <lphuberdeau@us...> - 2008-07-23 20:47:34
|
Revision: 13856 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13856&view=rev Author: lphuberdeau Date: 2008-07-23 20:47:42 +0000 (Wed, 23 Jul 2008) Log Message: ----------- [NEW] Script to perform the release (yet to be tested for a real release) Added Paths: ----------- trunk/doc/devtools/release.php Added: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php (rev 0) +++ trunk/doc/devtools/release.php 2008-07-23 20:47:42 UTC (rev 13856) @@ -0,0 +1,117 @@ +<?php + +define( 'TOOLS', dirname(__FILE__) ); +define( 'ROOT', realpath( TOOLS . '/../..' ) ); + +require_once TOOLS . '/svntools.php'; + +if( $_SERVER['argc'] <= 2 ) + die( "Usage: php doc/devtools/release.php <version-number> [ <subrelease> ] +Examples: + php doc/devtoos/release.php 2.0 preRC3 + php doc/devtoos/release.php 2.0 RC3 + php doc/devtoos/release.php 2.0 + +Notes: + Subreleases begining with pre will not be tagged. +" ); + +if( has_uncommited_changes( '.' ) ) + die( "Uncommited changes exist in the working folder.\n" ); + +update_working_copy( '.' ); + +if( $_SERVER['argc'] == 2 ) + $_SERVER['argv'][] = ''; + +list( $script, $version, $subrelease ) = $_SERVER['argv']; + +if( ! preg_match( "/^\d+\.\d+$/", $version ) ) + die( "Version number should be in X.X format.\n" ); + +$isPre = strpos( $subrelease, 'pre' ) === 0; + +if( $isPre ) + $subrelease = substr( $subrelease, 3 ); + +if( empty( $subrelease ) ) +{ + $branch = "branches/$version"; + $tag = "tags/$version"; + $packageVersion = $version; + $secdbVersion = $version; + +} +else +{ + $branch = "branches/$version"; + $tag = "tags/$version$subrelease"; + $packageVersion = "$version.$subrelease"; + $secdbVersion = "$version$subrelease"; +} + +write_secdb( ROOT . "/db/tiki-secdb_{$version}_mysql.sql", ROOT, $secdbVersion ); +`svn ci -m "[REL] SecDB for $secdbVersion"`; + +$script = TOOLS . '/tikirelease.sh'; +if( $isPre ) +{ + `bash $script $packageVersion $branch`; + + echo "~/tikipack/$packageVersion :\n"; + passthru( "ls ~/tikipack/$packageVersion" ); + echo "Make sure these tarballs are tested by at least 3 different people.\n"; +} +else +{ + $fb = full( $branch ); + $ft = full( $tag ); + + $revision = (int) get_info( ROOT )->entry->commit['revision']; + + `svn copy $fb -r$revision $ft`; + + `bash $script $packageVersion $tag`; + + echo "~/tikipack/$packageVersion :\n"; + passthru( "ls ~/tikipack/$packageVersion" ); + + echo "Upload the files on SourceForge.\nInstructions: http://tinyurl.com/59uubv\n";; +} + +// Helper functions + +function write_secdb( $file, $root, $version ) +{ + $fp = fopen( $file, 'w+' ); + + fwrite( $fp, "DELETE FROM `tiki_secdb` WHERE `tiki_version` = '$version';\n\n" ); + + md5_check_dir( $root, $root, $fp, $version ); + + fclose( $fp ); + `svn add $file`; +} + +function md5_check_dir($root,$dir,$fp,$version) { // save all files in $result + $d=dir($dir); + while (false !== ($e = $d->read())) { + $entry=$dir.'/'.$e; + if(is_dir($entry)) { + if($e != '..' && $e != '.' && $e != 'CVS' && $e != '.svn' && $entry!='./templates_c') { // do not descend and no CVS files + md5_check_dir($root,$entry,$fp,$version); + } + } else { + if(substr($e,-4,4)==".php" && realpath( $entry ) != __FILE__ && $entry!='./db/local.php') { + // echo "creating sum of $entry <br />\n"; + $file = mysql_real_escape_string( '.' . substr( $entry, strlen( $root ) ) ); + $hash = md5_file($entry); + + fwrite( $fp, "INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('$hash', '$file', '$version', 0);\n" ); + } + } + } + $d->close(); +} + +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lphuberdeau@us...> - 2008-08-10 19:42:09
|
Revision: 14153 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14153&view=rev Author: lphuberdeau Date: 2008-08-10 19:42:15 +0000 (Sun, 10 Aug 2008) Log Message: ----------- [FIX] File naming error Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2008-08-10 18:24:19 UTC (rev 14152) +++ trunk/doc/devtools/release.php 2008-08-10 19:42:15 UTC (rev 14153) @@ -43,7 +43,9 @@ { $branch = "branches/$version"; $tag = "tags/$version"; - $packageVersion = $version . ".$pre"; + $packageVersion = $version; + if( ! empty( $pre ) ) + $packageVersion .= ".$pre"; $secdbVersion = $version; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lphuberdeau@us...> - 2008-09-23 18:42:34
|
Revision: 14830 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14830&view=rev Author: lphuberdeau Date: 2008-09-23 18:38:12 +0000 (Tue, 23 Sep 2008) Log Message: ----------- [FIX] Release script to support minor releases Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2008-09-23 17:41:38 UTC (rev 14829) +++ trunk/doc/devtools/release.php 2008-09-23 18:38:12 UTC (rev 14830) @@ -5,7 +5,7 @@ require_once TOOLS . '/svntools.php'; -if( $_SERVER['argc'] <= 2 ) +if( $_SERVER['argc'] <= 1 ) die( "Usage: php doc/devtools/release.php <version-number> [ <subrelease> ] Examples: php doc/devtoos/release.php 2.0 preRC3 @@ -39,9 +39,11 @@ else $pre = ''; +$mainversion = $version{0} . '.0'; + if( empty( $subrelease ) ) { - $branch = "branches/$version"; + $branch = "branches/$mainversion"; $tag = "tags/$version"; $packageVersion = $version; if( ! empty( $pre ) ) @@ -51,7 +53,7 @@ } else { - $branch = "branches/$version"; + $branch = "branches/$mainversion"; $tag = "tags/$version$subrelease"; $packageVersion = "$version.$pre$subrelease"; $secdbVersion = "$version$subrelease"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <campbe13@us...> - 2009-05-04 17:06:46
|
Revision: 18450 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=18450&view=rev Author: campbe13 Date: 2009-05-04 17:06:44 +0000 (Mon, 04 May 2009) Log Message: ----------- [FIX] replace readline() func Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-05-04 17:05:37 UTC (rev 18449) +++ trunk/doc/devtools/release.php 2009-05-04 17:06:44 UTC (rev 18450) @@ -215,7 +215,10 @@ return true; } else { important("\n$step) $msg?"); - $c = readline('[Y/n/q] '); + echo "[Y/n/q] "; + $f=popen("read; echo \$REPLY","r"); + $c=fgets($f,100); + pclose($f); switch ( strtolower($c) ) { case 'y': case '': return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: WEBER Patrice <Patrice.WEBER@co...> - 2009-05-05 08:43:57
|
Hi Patricia, Unfortunately, this has already been fixed in a similar way in release.php of branches/3.0 (revision 18386). Please revert/rollback this change, trunk version will have to be updated with the version in branches/3.0 doc/devtools/release.php is much more up-to-date in branches/3.0, so you should have a look at this last one instead :) Thank you, Nyloth. -----Original Message----- From: campbe13@... [mailto:campbe13@...] Sent: Monday 4 May 2009 19:07 To: tikiwiki-cvs@... Subject: [Tikiwiki-cvs/svn] SF.net SVN: tikiwiki:[18450]trunk/doc/devtools/release.php Revision: 18450 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=18450&view=rev Author: campbe13 Date: 2009-05-04 17:06:44 +0000 (Mon, 04 May 2009) Log Message: ----------- [FIX] replace readline() func Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-05-04 17:05:37 UTC (rev 18449) +++ trunk/doc/devtools/release.php 2009-05-04 17:06:44 UTC (rev 18450) @@ -215,7 +215,10 @@ return true; } else { important("\n$step) $msg?"); - $c = readline('[Y/n/q] '); + echo "[Y/n/q] "; + $f=popen("read; echo \$REPLY","r"); + $c=fgets($f,100); + pclose($f); switch ( strtolower($c) ) { case 'y': case '': return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------ ------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Tikiwiki-cvs mailing list Tikiwiki-cvs@... https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs |
From: <campbe13@us...> - 2009-05-05 14:22:55
|
Revision: 18474 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=18474&view=rev Author: campbe13 Date: 2009-05-05 13:30:01 +0000 (Tue, 05 May 2009) Log Message: ----------- [FIX] undo 18450 replace readline() func Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-05-05 13:03:05 UTC (rev 18473) +++ trunk/doc/devtools/release.php 2009-05-05 13:30:01 UTC (rev 18474) @@ -215,10 +215,7 @@ return true; } else { important("\n$step) $msg?"); - echo "[Y/n/q] "; - $f=popen("read; echo \$REPLY","r"); - $c=fgets($f,100); - pclose($f); + $c = readline('[Y/n/q] '); switch ( strtolower($c) ) { case 'y': case '': return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mrjc@us...> - 2009-05-13 00:39:13
|
Revision: 18709 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=18709&view=rev Author: mrjc Date: 2009-05-13 00:39:00 +0000 (Wed, 13 May 2009) Log Message: ----------- extraneous space in release.php Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-05-12 23:00:48 UTC (rev 18708) +++ trunk/doc/devtools/release.php 2009-05-13 00:39:00 UTC (rev 18709) @@ -1,4 +1,4 @@ - <?php +<?php // ** This is the main script to release Tiki ** // This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nyloth@us...> - 2009-05-24 21:03:26
|
Revision: 19064 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=19064&view=rev Author: nyloth Date: 2009-05-24 21:03:16 +0000 (Sun, 24 May 2009) Log Message: ----------- [ENH] release script: * new smarty templates syntax check - this new feature can be disabled with the 'no-check-smarty' option * php syntax check: display php warnings and notices (but still only die on fatal errors) - note that warnings and notices are not displayed for some files matching a specific pattern which mainly targets third party libs - this new feature can be disabled with the 'no-check-php-warnings' option * now dynamically generates the release notes URL, to avoid changing the release script at each releases * some small fixes for the 'display_progress_percentage' function * define the error reporting level as a constant, set to all errors and warnings, including strict level * define the temporary directory as a constant * fix php warning when handling ENV vars Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-05-24 20:55:04 UTC (rev 19063) +++ trunk/doc/devtools/release.php 2009-05-24 21:03:16 UTC (rev 19064) @@ -11,6 +11,7 @@ define( 'TOOLS', dirname(__FILE__) ); define( 'ROOT', realpath( TOOLS . '/../..' ) ); +define( 'TEMP_DIR', 'temp' ); define( 'CHANGELOG_FILENAME', 'changelog.txt' ); define( 'CHANGELOG', ROOT . '/' . CHANGELOG_FILENAME ); @@ -21,6 +22,13 @@ define( 'README', ROOT . '/' . README_FILENAME ); define( 'LICENSE_FILENAME', 'license.txt' ); +// Display all errors and warnings, including strict level +define( 'ERROR_REPORTING_LEVEL', E_ALL | E_STRICT ); +error_reporting( ERROR_REPORTING_LEVEL ); + +// Exclude some third party libs when displaying warnings from the PHP syntax check, because we can't fix it directly by the way. +define( 'PHP_WARNINGS_EXLUDE_PATTERN', '#lib/(pear|ajax|adodb)#' ); + require_once TOOLS . '/svntools.php'; if ( version_compare(PHP_VERSION, '5.0.0', '<') ) @@ -100,8 +108,8 @@ if ( ! $options['no-lang-update'] && important_step("Update language files") ) { passthru("$phpCommand get_strings.php quiet"); $removeFiles = glob('lang/*/old.php'); - $removeFiles[] = 'temp/permstrings.tpl'; - $removeFiles[] = 'temp/prefnames.tpl'; + $removeFiles[] = TEMP_DIR . '/permstrings.tpl'; + $removeFiles[] = TEMP_DIR . '/prefnames.tpl'; foreach ( $removeFiles as $rf ) unlink($rf); unset($removeFiles); info('>> Language files updated and temporary files removed.'); @@ -137,10 +145,16 @@ if ( ! $options['no-check-php'] && important_step("Check syntax of all PHP files") ) { $error_msg = ''; $dir = '.'; - check_php_syntax($dir, $error_msg) or error($error_msg); + check_php_syntax($dir, $error_msg, $options['no-check-php-warnings']) or error($error_msg); info('>> Current PHP code successfully passed the syntax check.'); } +if ( ! $options['no-check-smarty'] && important_step("Check syntax of all Smarty templates") ) { + $error_msg = ''; + check_smarty_syntax($error_msg) or error($error_msg); + info('>> Current Smarty code successfully passed the syntax check.'); +} + if ( ! $options['no-secdb'] && important_step("Generate SecDB file 'db/tiki-secdb_{$version}_mysql.sql'") ) { write_secdb( ROOT . "/db/tiki-secdb_{$version}_mysql.sql", ROOT, $secdbVersion ); important_step("Commit SecDB file", true, "[REL] SecDB for $secdbVersion"); @@ -182,11 +196,7 @@ // Helper functions function write_secdb( $file, $root, $version ) { - if ( ! ($fp = @fopen($file, 'w+')) ) { - error('The SecDB file "' . $file . '" is not writable or can\'t be created.'); - die; - } - + $fp = @fopen($file, 'w+') or error('The SecDB file "' . $file . '" is not writable or can\'t be created.'); $queries = array(); md5_check_dir( $root, $root, $version, $queries ); @@ -254,16 +264,16 @@ passthru( "ls ~/tikipack/$releaseVersion" ); } -function get_php_files_list($dir, &$entries) { +function get_files_list($dir, &$entries, $regexp_pattern) { $d = dir($dir); while ( false !== ($e = $d->read()) ) { $entry = $dir . '/' . $e; if ( is_dir($entry) ) { // do not descend and no CVS/Subversion files if ( $e != '..' && $e != '.' && $e != 'CVS' && $e != '.svn' && $entry != './templates_c' ) { - if ( ! get_php_files_list($entry, $entries) ) return false; + if ( ! get_files_list($entry, $entries, $regexp_pattern) ) return false; } - } elseif ( substr($e,-4,4) == ".php" && realpath( $entry ) != __FILE__ ) { + } elseif ( preg_match($regexp_pattern, $e) && realpath($entry) != __FILE__ ) { $entries[] = $entry; } } @@ -272,35 +282,96 @@ } function display_progress_percentage($alreadyDone, $toDo, $message) { - $onePercent = round($toDo / 100); + $onePercent = ceil($toDo / 100); if ( $alreadyDone % $onePercent === 0 || $alreadyDone == $toDo ) { - $percentage = ( $alreadyDone == $toDo ) ? 100 : min(100, $alreadyDone / $onePercent); - printf("\r$message", min(100, $percentage)); + $percentage = ( $alreadyDone >= $toDo - $onePercent ) ? 100 : min(100, $alreadyDone / $onePercent); + printf("\r$message", $percentage); } } -function check_php_syntax(&$dir, &$error_msg, $retry = 10) { +function check_smarty_syntax(&$error_msg) { + global $tikidomain, $prefs, $smarty; + $tikidomain = ''; + + // Initialize $prefs with some variables needed by the tra() function and smarty autosave plugin + $prefs = array( + 'lang_use_db' => 'n', + 'language' => 'en', + 'site_language' => 'en', + 'feature_ajax' => 'n' + ); + + // Load Tiki Smarty + require_once 'setup_smarty.php'; + + $templates_dir = $smarty->template_dir; + $templates_dir_length = strlen($templates_dir); + if ( $templates_dir_length > 1 && $templates_dir{$templates_dir_length - 1} == '/' ) + $templates_dir = substr($templates_dir, 0, --$templates_dir_length); + $temp_compile_file = TEMP_DIR . 'smarty_compiled_content'; + + $entries = array(); + get_files_list($templates_dir, $entries, '/\.tpl$/'); + + $nbEntries = count($entries); + for ( $i = 0 ; $i < $nbEntries ; $i++ ) { + display_progress_percentage($i, $nbEntries, '%d%% of files passed the Smarty syntax check'); + + ob_start(); + $template_file = substr($entries[$i], $templates_dir_length + 1); + $smarty->_compile_resource($template_file, $temp_compile_file); + $compilation_output = ob_get_clean(); + + unlink($temp_compile_file); + + if ( ! empty($compilation_output) ) { + $error_msg = "\nError while compiling {$entries[$i]}." + . "\nThis may happen if one of the tiki smarty plugins (located in lib/smarty_tiki)" + . " used in the template outputs something when loaded (using php include)." + . "\nFor example, a white space after the PHP closing TAG of a smarty plugin can cause this." + . trim($compilation_output); + return false; + } + } + + echo "\n"; + return true; +} + +function check_php_syntax(&$dir, &$error_msg, $hide_php_warnings, $retry = 10) { global $phpCommand; + $checkPhpCommand = $phpCommand . ( ERROR_REPORTING_LEVEL > 0 ? ' -d error_reporting=' . (int)ERROR_REPORTING_LEVEL : '' ); $entries = array(); - get_php_files_list($dir, $entries); + get_files_list($dir, $entries, '/\.php$/'); $nbEntries = count($entries); for ( $i = 0 ; $i < $nbEntries ; $i++ ) { - display_progress_percentage($i, $nbEntries, '%d%% of files passed the syntax check'); + display_progress_percentage($i, $nbEntries, '%d%% of files passed the PHP syntax check'); $return_var = 0; $output = null; - exec("$phpCommand -l {$entries[$i]} 2>&1", $output, $return_var); + exec("$checkPhpCommand -l {$entries[$i]} 2>&1", $output, $return_var); $fullOutput = implode("\n", $output); + if ( strpos($fullOutput, 'Segmentation fault') !== false ) { // If php -l command segfaults, wait and retry (it seems to happen quite often on some environments for this command) - print "\r[Retrying due to a Segfault...]"; + echo "\r[Retrying due to a Segfault...]"; sleep(1); $i--; } elseif ( $return_var !== 0 ) { + // Handle PHP errors $fullOutput = trim($fullOutput); - $error_msg = ( $fullOutput == '' ) ? "\nParsing error in '{$entries[$i]}' ($return_var)\n" : "\n$fullOutput"; + $error_msg = ( $fullOutput == '' ) ? "\nPHP Parsing error in '{$entries[$i]}' ($return_var)\n" : "\n$fullOutput"; return false; + } elseif ( ! $hide_php_warnings && ( $nb_lines = count($output) ) > 1 && ! preg_match(PHP_WARNINGS_EXLUDE_PATTERN, $entries[$i]) ) { + // Handle PHP warnings / notices (this just displays a yellow warning, it doesn't return false or an error_msg) + echo "\r"; + foreach ( $output as $k => $line ) { + // Remove empty lines and last line (because in case of a simple warning, the last line simply says 'No syntax errors...') + if ( trim($line) == '' || $k == $nb_lines - 1 ) continue; + echo color("$line\n", 'yellow'); + } + display_progress_percentage($i, $nbEntries, '%d%% of files passed the PHP syntax check'); } unset($output, $return_var); } @@ -320,6 +391,8 @@ 'no-commit' => false, 'no-check-svn' => false, 'no-check-php' => false, + 'no-check-php-warnings' => false, + 'no-check-smarty' => false, 'no-first-update' => false, 'no-readme-update' => false, 'no-lang-update' => false, @@ -337,9 +410,8 @@ foreach ( $options as $option => $optValue) { $envOption = $prefix.$option; $envOption = str_replace("-", "_", $envOption); - $envValue = $_ENV[$envOption]; - - if (isset($envValue)) { + if ( isset($_ENV[$envOption]) ) { + $envValue = $_ENV[$envOption]; $options[$option] = $envValue; } } @@ -431,10 +503,8 @@ } function update_changelog_file($newVersion) { - if ( ! is_readable(CHANGELOG) || ! is_writable(CHANGELOG) || ! ($handle = @fopen(CHANGELOG, "r")) ) { + if ( ! is_readable(CHANGELOG) || ! is_writable(CHANGELOG) || ! ($handle = @fopen(CHANGELOG, "r")) ) error('The changelog file "' . CHANGELOG . '" is not readable or writable.'); - die; - } $isNewMajorVersion = substr($newVersion, -1) == 0; $releaseNotesURL = '<http://tikiwiki.org/ReleaseNotes'.str_replace('.';, '', $newVersion).'>'; @@ -532,10 +602,8 @@ } function update_copyright_file($newVersion) { - if ( ! is_readable(COPYRIGHTS) || ! is_writable(COPYRIGHTS) ) { + if ( ! is_readable(COPYRIGHTS) || ! is_writable(COPYRIGHTS) ) error('The copyright file "' . COPYRIGHTS . '" is not readable or writable.'); - die; - } global $nbCommiters; $nbCommiters = 0; @@ -714,6 +782,9 @@ $copyrights_file = COPYRIGHTS_FILENAME; $license_file = LICENSE_FILENAME; + $release_notes_url = 'http://tikiwiki.org/ReleaseNotes'; . str_replace('.', '', $mainVersion); + // For example, Tiki 3.x release notes are on http://tikiwiki.org/ReleaseNotes30 + $readme = <<<EOF Tiki! The wiki with a lot of features! Version $releaseVersion @@ -727,7 +798,7 @@ * It is highly recommended that you refer to the online documentation: * http://doc.tikiwiki.org/Installation for a setup guide -* Notes about this release are accessible from http://tikiwiki.org/ReleaseNotes30 +* Notes about this release are accessible from $release_notes_url * Tikiwiki has an active IRC channel, #tikiwiki on irc.freenode.net INSTALLATION @@ -767,6 +838,8 @@ --no-commit : do not commit any changes back to SVN --no-check-svn : do not check if there is uncommited changes on the checkout used for the release --no-check-php : do not check syntax of all PHP files + --no-check-php-warnings : do not display PHP warnings and notices during the PHP syntax check + --no-check-smarty : do not check syntax of all Smarty templates --no-first-update : do not svn update the checkout used for the release as the first step --no-readme-update : do not update the '" . README_FILENAME . "' file --no-lang-update : do not update lang/*/language.php files This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nyloth@us...> - 2009-06-18 09:48:35
|
Revision: 19672 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=19672&view=rev Author: nyloth Date: 2009-06-18 09:48:27 +0000 (Thu, 18 Jun 2009) Log Message: ----------- [FIX] release script: fix changelog generated for minor versions + remove useless comment Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-06-18 02:42:17 UTC (rev 19671) +++ trunk/doc/devtools/release.php 2009-06-18 09:48:27 UTC (rev 19672) @@ -115,7 +115,7 @@ } if ( ! $options['no-changelog-update'] && important_step("Update '" . CHANGELOG_FILENAME . "' file (using final version number '$version')") ) { - if ( $ucf = update_changelog_file($mainversion) ) { + if ( $ucf = update_changelog_file($version) ) { if ( $ucf['nbCommits'] == 0 ) { info('>> Changelog updated (last commits were already inside)'); } else { @@ -528,16 +528,6 @@ } $parseLogs = true; $lastReleaseMajorNumber = $versionMatches[1]; -/* if ( $lastReleaseMajorNumber == 0 || $parseLogs ) { - $parseLogs = ( - $lastReleaseMajorNumber == 0 - || ( ! $isNewMajorVersion && $lastReleaseMajorNumber == 0 ) - || ( $isNewMajorVersion && $versionMatches[1] == $lastReleaseMajorNumber ) - ); - $lastReleaseMajorNumber = $versionMatches[1]; - if ( $parseLogs ) $minRevision = 0; - } -*/ } elseif ( $parseLogs ) { $matches = array(); if ( preg_match('/^r(\d+) \|/', $buffer, $matches) ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nyloth@us...> - 2009-06-18 16:56:51
|
Revision: 19688 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=19688&view=rev Author: nyloth Date: 2009-06-18 16:56:49 +0000 (Thu, 18 Jun 2009) Log Message: ----------- [FIX] release script: fix option name '-debug-packaging' into 'debug-packaging' Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-06-18 16:54:00 UTC (rev 19687) +++ trunk/doc/devtools/release.php 2009-06-18 16:56:49 UTC (rev 19688) @@ -250,7 +250,7 @@ function build_packages($releaseVersion, $svnRelativePath) { $script = TOOLS . '/tikirelease.sh'; - if ($options['-debug-packaging']) { + if ($options['debug-packaging']) { $debugflag = '-x'; } else { $debugflag = ''; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2009-06-30 22:58:52
|
Revision: 19871 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=19871&view=rev Author: marclaporte Date: 2009-06-30 22:58:49 +0000 (Tue, 30 Jun 2009) Log Message: ----------- [DOC] A reminder for October 2009 about branches name Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-06-30 19:15:00 UTC (rev 19870) +++ trunk/doc/devtools/release.php 2009-06-30 22:58:49 UTC (rev 19871) @@ -851,6 +851,8 @@ HOWTO release Tiki -------------------------- +0/ When branching for 4.x, call it branches/4.x to be clearer than branches/3.0, because branches/4.x is indeed 4.1, 4.2, etc. + 1/ Preliminary manual tasks - run the tiki installer and correct anything obviously wrong - the "function update_readme_file" in this script will output to the top-level README: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2009-08-30 07:04:57
|
Revision: 21151 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=21151&view=rev Author: marclaporte Date: 2009-08-30 07:04:50 +0000 (Sun, 30 Aug 2009) Log Message: ----------- [FIX] more precise in case people don't know. Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-08-30 05:28:45 UTC (rev 21150) +++ trunk/doc/devtools/release.php 2009-08-30 07:04:50 UTC (rev 21151) @@ -622,7 +622,7 @@ List of members of the Community As of $now, the community has: - * $totalContributors members on Sourceforge, + * $totalContributors members on SourceForge.net, * $nbCommiters of those people who made at least one code commit This list is automatically generated and alphabetically sorted This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2009-09-20 14:13:42
|
Revision: 21611 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=21611&view=rev Author: marclaporte Date: 2009-09-20 14:13:33 +0000 (Sun, 20 Sep 2009) Log Message: ----------- [FIX] Update link in release script with respect to Social Contract, according to http://tikiwiki.org/Where Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-09-20 05:47:52 UTC (rev 21610) +++ trunk/doc/devtools/release.php 2009-09-20 14:13:33 UTC (rev 21611) @@ -610,15 +610,15 @@ Tiki Copyright ---------------- -The following list attempts to gather the copyright holders for tikiwiki +The following list attempts to gather the copyright holders for Tiki as of version $newVersion. Accounts listed below with commits have contributed source code to CVS or SVN. Please note that even more people contributed on various other aspects (documentation, bug reporting, testing, etc.) -This is how we implement the Tikiwiki Social Contract. -http://dev.tikiwiki.org/SocialContract +This is how we implement the Tiki Social Contract. +http://tikiwiki.org/Social+Contract List of members of the Community As of $now, the community has: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2009-09-20 15:35:32
|
Revision: 21614 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=21614&view=rev Author: marclaporte Date: 2009-09-20 15:35:24 +0000 (Sun, 20 Sep 2009) Log Message: ----------- [FIX] Update link in release script. Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-09-20 15:18:07 UTC (rev 21613) +++ trunk/doc/devtools/release.php 2009-09-20 15:35:24 UTC (rev 21614) @@ -888,7 +888,7 @@ In case of a major version (x.0), you need at least 3 installations from 3 different people 6/ When the "tarballs" are tested, follow the steps to upload on SourceForge: - http://tinyurl.com/59uubv + http://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download 7/ Announce the good news on devel mailing-list and ask the TAG (TikiWiki Admin Group) through the admin mailing-list This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2009-09-28 16:08:01
|
Revision: 21820 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=21820&view=rev Author: marclaporte Date: 2009-09-28 16:07:52 +0000 (Mon, 28 Sep 2009) Log Message: ----------- [DOC] Clarifying about Promotion of releae and reminder about next branch name Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-09-28 15:49:11 UTC (rev 21819) +++ trunk/doc/devtools/release.php 2009-09-28 16:07:52 UTC (rev 21820) @@ -851,7 +851,8 @@ HOWTO release Tiki -------------------------- -0/ When branching for 4.x, call it branches/4.x to be clearer than branches/3.0, because branches/4.x is indeed 4.1, 4.2, etc. +0/ When branching for 4.x, call it branches/4 or branches/4.x (to be discussed) to be clearer than + branches/3.0, because branches/4.x is indeed 4.1, 4.2, etc. 1/ Preliminary manual tasks - run the tiki installer and correct anything obviously wrong @@ -891,8 +892,8 @@ http://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download 7/ Announce the good news on devel mailing-list - and ask the TAG (TikiWiki Admin Group) through the admin mailing-list - to launch the announce-speading process (Freshmeat, SourceForge and tikiwiki.org (manually for now). + and ask the Communications Team to launch the announce-spreading process as described on + http://tikiwiki.org/Communications+Team+Release post/ Update appropriate http://tikiwiki.org/stable.version file with new release version This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nyloth@us...> - 2009-10-28 21:52:21
|
Revision: 22726 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=22726&view=rev Author: nyloth Date: 2009-10-28 21:52:14 +0000 (Wed, 28 Oct 2009) Log Message: ----------- [FIX] release script: Update the checkout before trying to get its last revision, in order to be sure to create the svn tag with the last commit from the release script (usually secdb changes). Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-10-28 21:42:21 UTC (rev 22725) +++ trunk/doc/devtools/release.php 2009-10-28 21:52:14 UTC (rev 22726) @@ -177,6 +177,7 @@ } if ( ! $tagAlreadyExists ) { + update_working_copy('.'); $revision = (int) get_info( ROOT )->entry->commit['revision']; if ( important_step("Tag release using branch '$branch' at revision $revision") ) { `svn copy $fb -r$revision $ft -m "[REL] Tagging release"`; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2009-11-03 03:03:54
|
Revision: 22805 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=22805&view=rev Author: marclaporte Date: 2009-11-03 03:03:48 +0000 (Tue, 03 Nov 2009) Log Message: ----------- [DOC] doc link Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-11-03 02:27:49 UTC (rev 22804) +++ trunk/doc/devtools/release.php 2009-11-03 03:03:48 UTC (rev 22805) @@ -854,7 +854,8 @@ 0/ When branching for 4.x, call it branches/4 or branches/4.x (to be discussed) to be clearer than branches/3.0, because branches/4.x is indeed 4.1, 4.2, etc. - + http://dev.tikiwiki.org/SVNTips#Handling_branches + 1/ Preliminary manual tasks - run the tiki installer and correct anything obviously wrong - the "function update_readme_file" in this script will output to the top-level README: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2009-12-23 20:59:44
|
Revision: 24020 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=24020&view=rev Author: marclaporte Date: 2009-12-23 20:59:35 +0000 (Wed, 23 Dec 2009) Log Message: ----------- [DOC] updating release instructions Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-12-23 20:38:49 UTC (rev 24019) +++ trunk/doc/devtools/release.php 2009-12-23 20:59:35 UTC (rev 24020) @@ -855,8 +855,9 @@ HOWTO release Tiki -------------------------- -0/ When branching for 4.x, call it branches/4 or branches/4.x (to be discussed) to be clearer than - branches/3.0, because branches/4.x is indeed 4.1, 4.2, etc. +0/ When branching for 5.x, name it branches/5.x to be + clearer than branches/3.0, because branches/5.x is + indeed 5.1, 5.2, etc. http://dev.tikiwiki.org/SVNTips#Handling_branches 1/ Preliminary manual tasks This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2009-12-27 00:56:15
|
Revision: 24052 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=24052&view=rev Author: marclaporte Date: 2009-12-27 00:56:05 +0000 (Sun, 27 Dec 2009) Log Message: ----------- [DOC] Adding more post-install instructions Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-12-27 00:49:15 UTC (rev 24051) +++ trunk/doc/devtools/release.php 2009-12-27 00:56:05 UTC (rev 24052) @@ -904,6 +904,7 @@ post/ Update appropriate http://tikiwiki.org/stable.version file with new release version (or ask the TAG to do this) + Increment/update lib/setup/twversion.class.php accordingly (depending if major or minor release) All that process has to be relayed on live irc channel : irc://irc.freenode.net/#tikiwiki This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2009-12-28 20:54:49
|
Revision: 24077 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=24077&view=rev Author: marclaporte Date: 2009-12-28 20:54:40 +0000 (Mon, 28 Dec 2009) Log Message: ----------- [FIX] Update release docs Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2009-12-28 20:32:15 UTC (rev 24076) +++ trunk/doc/devtools/release.php 2009-12-28 20:54:40 UTC (rev 24077) @@ -904,7 +904,9 @@ post/ Update appropriate http://tikiwiki.org/stable.version file with new release version (or ask the TAG to do this) - Increment/update lib/setup/twversion.class.php accordingly (depending if major or minor release) + Increment/update lib/setup/twversion.class.php and db/convertscripts/convertsqls.sh accordingly (depending if major or minor release) + Delete trunk/db/*.sql for old versions + Regenerate new database files with db/convertscripts/convertsqls.sh All that process has to be relayed on live irc channel : irc://irc.freenode.net/#tikiwiki This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2010-01-06 13:11:44
|
Revision: 24159 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=24159&view=rev Author: marclaporte Date: 2010-01-06 13:11:03 +0000 (Wed, 06 Jan 2010) Log Message: ----------- [DOC] Update release script doc with respect to versionning. If you see a simpler/better way to implement and document, please do so. Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2010-01-06 12:59:06 UTC (rev 24158) +++ trunk/doc/devtools/release.php 2010-01-06 13:11:03 UTC (rev 24159) @@ -872,6 +872,7 @@ - in lib/setup/twversion.class.php - increment the version number in the constructor - update list of valid releases in getVersions() + - Make sure you add all Tiki versions (not just the one you are doing now). Ex.: when 5.0 is released, 4.2 will probably exist, and this was added to branches/4.x but not merged by script. - change the version branch to "unstable", "stable", or "head" as explained in that file - commit your changes with this commit message (change \$VERSION by the version of the release): [REL] Preparing \$VERSION release This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2010-01-06 14:40:46
|
Revision: 24164 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=24164&view=rev Author: marclaporte Date: 2010-01-06 14:40:33 +0000 (Wed, 06 Jan 2010) Log Message: ----------- [DOC] Under Construction is so 1995. Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2010-01-06 13:51:14 UTC (rev 24163) +++ trunk/doc/devtools/release.php 2010-01-06 14:40:33 UTC (rev 24164) @@ -785,7 +785,7 @@ DOCUMENTATION -* The documentation for $mainVersion version is under construction on http://doc.tikiwiki.org. +* The documentation for $mainVersion version is ever evolving at http://doc.tikiwiki.org. You're encouraged to contribute. * It is highly recommended that you refer to the online documentation: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <marclaporte@us...> - 2010-01-18 05:53:00
|
Revision: 24485 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=24485&view=rev Author: marclaporte Date: 2010-01-18 05:52:54 +0000 (Mon, 18 Jan 2010) Log Message: ----------- [KIL] Remove DB independance-related code in the release process Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2010-01-18 05:34:02 UTC (rev 24484) +++ trunk/doc/devtools/release.php 2010-01-18 05:52:54 UTC (rev 24485) @@ -866,9 +866,6 @@ -- check if anyone has committed anything manually to README that needs to be brought back into this script -- check links - run doc/devtools/securitycheck.php and check each "potentially unsafe" file. - - cd db/convertscripts and run convertsqls.sh - --- Check that you do not have spurious quote marks in your db/*.sql file - --- the string \" should not appear, if it does, ask nyloth or nkoth3 on IRC - in lib/setup/twversion.class.php - increment the version number in the constructor - update list of valid releases in getVersions() @@ -905,9 +902,7 @@ post/ Update appropriate http://tikiwiki.org/stable.version file with new release version (or ask the TAG to do this) - Increment/update lib/setup/twversion.class.php and db/convertscripts/convertsqls.sh accordingly (depending if major or minor release) - Delete trunk/db/*.sql for old versions - Regenerate new database files with db/convertscripts/convertsqls.sh + Increment/update lib/setup/twversion.class.php (depending if major or minor release) All that process has to be relayed on live irc channel : irc://irc.freenode.net/#tikiwiki This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nyloth@us...> - 2010-03-02 20:52:49
|
Revision: 25838 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=25838&view=rev Author: nyloth Date: 2010-03-02 20:52:42 +0000 (Tue, 02 Mar 2010) Log Message: ----------- [ENH] release script: new '--svn-mirror-uri=URI' command line option to allow specifying another repository URI (like a local mirror) to be used when updating the copyright file. This is to speed up the release, because this step is very slow when using the main sourceforge repository. Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2010-03-02 20:46:29 UTC (rev 25837) +++ trunk/doc/devtools/release.php 2010-03-02 20:52:42 UTC (rev 25838) @@ -52,7 +52,9 @@ if ( ! $options['no-check-svn'] && has_uncommited_changes('.') ) error("Uncommited changes exist in the working folder.\n"); -list( $script, $version, $subrelease ) = $_SERVER['argv']; +$script = $_SERVER['argv'][0]; +$version = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : ''; +$subrelease = isset($_SERVER['argv'][2]) ? $_SERVER['argv'][2] : ''; if ( ! preg_match("/^\d+\.\d+$/", $version) ) error("Version number should be in X.X format.\n"); @@ -396,6 +398,7 @@ 'howto' => false, 'help' => false, 'http-proxy' => false, + 'svn-mirror-uri' => false, 'no-commit' => false, 'no-check-svn' => false, 'no-check-php' => false, @@ -435,6 +438,10 @@ 'request_fulluri' => true ) ) ); } else $options[substr($arg, 2, 10)] = true; + } elseif ( substr($arg, 2, 15) == 'svn-mirror-uri=' ) { + if ( ( $uri = substr($arg, 17) ) != '' ) { + $options[substr($arg, 2, 14)] = $uri; + } } else { error("Unknown option $arg. Try using --help option.\n"); } @@ -603,13 +610,15 @@ if ( ! is_readable(COPYRIGHTS) || ! is_writable(COPYRIGHTS) ) error('The copyright file "' . COPYRIGHTS . '" is not readable or writable.'); - global $nbCommiters; + global $nbCommiters, $options; $nbCommiters = 0; $contributors = array(); - $repositoryInfo = get_info(TIKISVN); + $repositoryUri = empty($options['svn-mirror-uri']) ? TIKISVN : $options['svn-mirror-uri']; + $repositoryInfo = get_info($repositoryUri); + $oldContributors = parse_copyrights(); - get_contributors_data(TIKISVN, $contributors, 1, (int)$repositoryInfo->entry->commit['revision']); + get_contributors_data($repositoryUri, $contributors, 1, (int)$repositoryInfo->entry->commit['revision']); ksort($contributors); $totalContributors = count($contributors); @@ -833,6 +842,7 @@ --howto : display the Tiki release HOWTO --help : display this help --http-proxy=HOST:PORT : use an http proxy to get copyright data on sourceforge + --svn-mirror-uri=URI : use another repository URI to update the copyrights file (to avoid retrieving data from sourceforge, which is usually slow) --no-commit : do not commit any changes back to SVN --no-check-svn : do not check if there is uncommited changes on the checkout used for the release --no-check-php : do not check syntax of all PHP files This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sept_7@us...> - 2011-10-11 16:10:59
|
Revision: 38160 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=38160&view=rev Author: sept_7 Date: 2011-10-11 16:10:50 +0000 (Tue, 11 Oct 2011) Log Message: ----------- [FIX] cleanup some left over from Smarty3 transition Modified Paths: -------------- trunk/doc/devtools/release.php Modified: trunk/doc/devtools/release.php =================================================================== --- trunk/doc/devtools/release.php 2011-10-11 15:59:18 UTC (rev 38159) +++ trunk/doc/devtools/release.php 2011-10-11 16:10:50 UTC (rev 38160) @@ -321,11 +321,6 @@ require_once 'lib/init/smarty.php'; set_error_handler('check_smarty_syntax_error_handler'); - $templates_dir = $smarty->template_dir; - $templates_dir_length = strlen($templates_dir); - if ( $templates_dir_length > 1 && $templates_dir{$templates_dir_length - 1} == '/' ) - $templates_dir = substr($templates_dir, 0, --$templates_dir_length); - $temp_compile_file = TEMP_DIR . 'smarty_compiled_content'; $smarty->compileAllTemplates('.tpl', true); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |