Permalink
Browse files

build.php: tags in examples & sandbox must match Nette tag

  • Loading branch information...
1 parent 5949cdf commit a9e64b7c0559d86a0f24c1def0d278316f8889a2 @dg dg committed Mar 31, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 build.php
View
7 build.php
@@ -129,13 +129,12 @@
$project->delete($dir);
$project->gitClone('git://github.com/nette/nette.git', $tag, $dir);
- $major = preg_match('#^v\d\.\d#', $tag, $m) ? $m[0] : NULL;
- if ($major === 'v0.9') {
+ if (substr($tag, 0, 4) === 'v0.9') {
$project->gitClone('git://github.com/dg/dibi.git', 'master', "$dir/3rdParty/dibi");
$project->write("$dir/3rdParty/dibi/netterobots.txt", 'Disallow: /dibi-minified');
} else {
- $project->gitClone('git://github.com/nette/examples.git', $major, "$dir/examples");
- $project->gitClone('git://github.com/nette/sandbox.git', $major, "$dir/sandbox");
+ $project->gitClone('git://github.com/nette/examples.git', $tag, "$dir/examples");
+ $project->gitClone('git://github.com/nette/sandbox.git', $tag, "$dir/sandbox");
$project->gitClone('git://github.com/nette/tools.git', NULL, "$dir/tools");
}

0 comments on commit a9e64b7

Please sign in to comment.