* upgrade the db.
+ add tags and build tools.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
<?php
|
||||
/**
|
||||
1. 修改zentaophp中的version number,打tag。
|
||||
2. 修改zentaoms中的version
|
||||
config.php中的version.
|
||||
@@ -11,3 +13,33 @@
|
||||
9. windows包。
|
||||
10. 上传文件。
|
||||
11. 撰写升级声明。
|
||||
*/
|
||||
|
||||
$phpURL = 'http://zentaophp.googlecode.com/svn/tags/';
|
||||
$pmsURL = 'http://zentaoms.googlecode.com/svn/tags/';
|
||||
|
||||
$phpTag = getLatestTag($phpURL);
|
||||
$pmsTag = getLatestTag($pmsURL);
|
||||
|
||||
$phpTagURL = $phpURL . $phpTag;
|
||||
$pmsTagURL = $pmsURL . $pmsTag;
|
||||
|
||||
echo $phpTag . "'\t" . $pmsTag . "\n";
|
||||
|
||||
chdir('../release/');
|
||||
echo `svn export $phpTagURL`;
|
||||
echo `svn export $pmsTagURL`;
|
||||
|
||||
/* Get the latest tag under a url. */
|
||||
function getLatestTag($url)
|
||||
{
|
||||
$lines = file($url);
|
||||
$latestTag = '';
|
||||
foreach($lines as $line)
|
||||
{
|
||||
if(strpos($line, '<li>') !== false) $latestTag = $line;
|
||||
}
|
||||
$latestTag = explode('"', $latestTag);
|
||||
$latestTag = $latestTag[1];
|
||||
return $latestTag;
|
||||
}
|
||||
|
||||
22
bin/tags.php
Normal file
22
bin/tags.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/* This file is used to crete a tag of subverion. */
|
||||
|
||||
$config->zentaophp->svnRoot = 'https://zentaophp.googlecode.com/svn/';
|
||||
$config->zentaophp->svnTrunk = 'trunk/';
|
||||
$config->zentaophp->svnTags = 'tags/';
|
||||
|
||||
$config->zentaopms->svnRoot = 'https://zentaoms.googlecode.com/svn/';
|
||||
$config->zentaopms->svnTrunk = 'trunk/';
|
||||
$config->zentaopms->svnTags = 'tags/';
|
||||
|
||||
if(count($argv) != 4) die(__FILE__ . " repo version releasetype:beta|alpa|stable\n");
|
||||
|
||||
$repo = $argv[1];
|
||||
$version = $argv[2];
|
||||
$release = $argv[3];
|
||||
|
||||
$sourceURL = $config->$repo->svnRoot . $config->$repo->svnTrunk;
|
||||
$targetURL = $config->$repo->svnRoot . $config->$repo->svnTags . $repo . '_' . $version . '_' . $release . '_' . date('Ymd');
|
||||
|
||||
$svnCMD = "svn rm $targetURL -m 'remove it'; svn cp $sourceURL $targetURL -m 'tag $version of $repo'";
|
||||
system($svnCMD);
|
||||
979
db/zentao.sql
979
db/zentao.sql
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user