File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 2121
2222echo 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-
5424exit (0 );
You can’t perform that action at this time.
0 commit comments