Skip to content

Commit f0930ea

Browse files
committed
dropped pear releasing process
1 parent 54408e0 commit f0930ea

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

bin/release.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,4 @@
2121

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

24-
if (is_file('package.xml')) {
25-
$filesystem->remove(getcwd().DIRECTORY_SEPARATOR.'package.xml');
26-
}
27-
28-
$filesystem->copy(getcwd().'/package.xml.tmpl', getcwd().'/package.xml');
29-
30-
// add class files
31-
$finder = sfFinder::type('file')->relative();
32-
$xml_classes = '';
33-
$dirs = ['lib' => 'php', 'data' => 'data'];
34-
foreach ($dirs as $dir => $role) {
35-
$class_files = $finder->in($dir);
36-
foreach ($class_files as $file) {
37-
$xml_classes .= '<file role="'.$role.'" baseinstalldir="symfony" install-as="'.$file.'" name="'.$dir.'/'.$file.'" />'."\n";
38-
}
39-
}
40-
41-
// replace tokens
42-
$filesystem->replaceTokens(getcwd().DIRECTORY_SEPARATOR.'package.xml', '##', '##', [
43-
'SYMFONY_VERSION' => $version,
44-
'CURRENT_DATE' => date('Y-m-d'),
45-
'CLASS_FILES' => $xml_classes,
46-
'STABILITY' => $stability,
47-
]);
48-
49-
list($results) = $filesystem->execute('pear package');
50-
echo $results;
51-
52-
$filesystem->remove(getcwd().DIRECTORY_SEPARATOR.'package.xml');
53-
5424
exit(0);

0 commit comments

Comments
 (0)