Skip to content

Commit d61d13b

Browse files
committed
we want an exact version (eg based on git tag) instead of prefix
1 parent b5c6d19 commit d61d13b

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

bin/release.php

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
require_once __DIR__.'/../vendor/autoload.php';
1313

1414
if (!isset($argv[1])) {
15-
throw new Exception('You must provide version prefix.');
15+
throw new \InvalidArgumentException('You must provide version.');
1616
}
1717

1818
if (!isset($argv[2])) {
@@ -23,23 +23,7 @@
2323

2424
$filesystem = new sfFilesystem();
2525

26-
if (('beta' == $stability || 'alpha' == $stability) && count(explode('.', $argv[1])) < 2) {
27-
$version_prefix = $argv[1];
28-
29-
list($result) = $filesystem->execute('svn status -u '.getcwd());
30-
if (preg_match('/Status against revision\:\s+(\d+)\s*$/im', $result, $match)) {
31-
$version = $match[1];
32-
}
33-
34-
if (!isset($version)) {
35-
throw new Exception('Unable to find last SVN revision.');
36-
}
37-
38-
// make a PEAR compatible version
39-
$version = $version_prefix.'.'.$version;
40-
} else {
41-
$version = $argv[1];
42-
}
26+
$version = $argv[1];
4327

4428
echo sprintf("Releasing symfony version \"%s\".\n", $version);
4529

0 commit comments

Comments
 (0)