diff --git a/bin/php/getbugs.php b/bin/php/api/getbugs.php similarity index 100% rename from bin/php/getbugs.php rename to bin/php/api/getbugs.php diff --git a/bin/php/todo.php b/bin/php/api/gettodo.php similarity index 100% rename from bin/php/todo.php rename to bin/php/api/gettodo.php diff --git a/bin/php/build.php b/bin/php/build.php deleted file mode 100644 index 9f451a76c4..0000000000 --- a/bin/php/build.php +++ /dev/null @@ -1,45 +0,0 @@ -zentao.sql -8. zip包。 -9. windows包。 -10. 上传文件。 -11. 撰写升级声明。 - */ - -$phpURL = 'http://zentaophp.googlecode.com/svn/tags/'; -$pmsURL = 'http://ZenTaoPMS.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, '
  • ') !== false) $latestTag = $line; - } - $latestTag = explode('"', $latestTag); - $latestTag = $latestTag[1]; - return $latestTag; -}