|
2 | 2 | <?php
|
3 | 3 | namespace de\bisaboard\bisaboard;
|
4 | 4 | /**
|
5 |
| - * Builds be.bastelstu.max.pushNotification |
| 5 | + * Builds be.bastelstu.max.wcf.pushNotification |
6 | 6 | *
|
7 | 7 | * @author Tim Düsterhus, edited by Maximilian Mader
|
8 | 8 | * @copyright 2012-2013 Tim Düsterhus
|
|
11 | 11 | */
|
12 | 12 | $packageXML = file_get_contents('package.xml');
|
13 | 13 | preg_match('/<version>(.*?)<\/version>/', $packageXML, $matches);
|
14 |
| -echo "Building be.bastelstu.max.pushNotification $matches[1]\n"; |
15 |
| -echo str_repeat("=", strlen("Building be.bastelstu.max.pushNotification $matches[1]"))."\n"; |
| 14 | +echo "Building be.bastelstu.max.wcf.pushNotification $matches[1]\n"; |
| 15 | +echo str_repeat("=", strlen("Building be.bastelstu.max.wcf.pushNotification $matches[1]"))."\n"; |
16 | 16 |
|
17 | 17 | echo <<<EOT
|
18 | 18 | Cleaning up
|
|
25 | 25 | }
|
26 | 26 | if (file_exists('file.tar')) unlink('file.tar');
|
27 | 27 | if (file_exists('acptemplates.tar')) unlink('acptemplates.tars');
|
28 |
| - if (file_exists('be.bastelstu.max.pushNotification.tar')) unlink('be.bastelstu.max.pushNotification.tar'); |
| 28 | + if (file_exists('be.bastelstu.max.wcf.pushNotification.tar')) unlink('be.bastelstu.max.wcf.pushNotification.tar'); |
29 | 29 | echo <<<EOT
|
30 | 30 |
|
31 | 31 | Checking PHP for Syntax Errors
|
|
75 | 75 |
|
76 | 76 | echo <<<EOT
|
77 | 77 |
|
78 |
| -Building be.bastelstu.max.pushNotification |
| 78 | +Building be.bastelstu.max.wcf.pushNotification |
79 | 79 | ------------------------------------------
|
80 | 80 |
|
81 | 81 | EOT;
|
82 | 82 | chdir('..');
|
83 | 83 | file_put_contents('package.xml.old', file_get_contents('package.xml'));
|
84 | 84 | file_put_contents('package.xml', preg_replace('~<date>\d{4}-\d{2}-\d{2}</date>~', '<date>'.date('Y-m-d').'</date>', file_get_contents('package.xml')));
|
85 |
| - passthru('tar cvf be.bastelstu.max.pushNotification.tar --exclude=*.old --exclude=file --exclude=contrib -- *', $code); |
| 85 | + passthru('tar cvf be.bastelstu.max.wcf.pushNotification.tar --exclude=*.old --exclude=file --exclude=contrib -- *', $code); |
86 | 86 | if (file_exists('package.xml.old')) {
|
87 | 87 | file_put_contents('package.xml', file_get_contents('package.xml.old'));
|
88 | 88 | unlink('package.xml.old');
|
|
0 commit comments