File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 1212require_once __DIR__ .'/../vendor/autoload.php ' ;
1313
1414if (!isset ($ argv [1 ])) {
15- throw new Exception ('You must provide version prefix . ' );
15+ throw new \ InvalidArgumentException ('You must provide version. ' );
1616}
1717
1818if (!isset ($ argv [2 ])) {
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
4428echo sprintf ("Releasing symfony version \"%s \". \n" , $ version );
4529
You can’t perform that action at this time.
0 commit comments