mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Fixing date replacing. I fail.
This commit is contained in:
parent
d261a537a2
commit
8033dea3e6
12
build.php
12
build.php
@ -74,13 +74,7 @@
|
|||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
EOT;
|
EOT;
|
||||||
file_put_contents('package.xml.old', file_get_contents('package.xml'));
|
|
||||||
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')));
|
|
||||||
passthru('tar cvf ../file.tar * --exclude=*.old --exclude=*.coffee --exclude=*.scss --exclude=.sass-cache', $code);
|
passthru('tar cvf ../file.tar * --exclude=*.old --exclude=*.coffee --exclude=*.scss --exclude=.sass-cache', $code);
|
||||||
if (file_exists('package.xml.old')) {
|
|
||||||
file_put_contents('package.xml', file_get_contents('package.xml.old'));
|
|
||||||
unlink('package.xml.old');
|
|
||||||
}
|
|
||||||
if ($code != 0) exit($code);
|
if ($code != 0) exit($code);
|
||||||
echo <<<EOT
|
echo <<<EOT
|
||||||
|
|
||||||
@ -107,7 +101,13 @@
|
|||||||
|
|
||||||
EOT;
|
EOT;
|
||||||
chdir('..');
|
chdir('..');
|
||||||
|
file_put_contents('package.xml.old', file_get_contents('package.xml'));
|
||||||
|
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')));
|
||||||
passthru('tar cvf be.bastelstu.wcf.chat.tar * --exclude=file --exclude=template --exclude=acptemplate --exclude=build.php', $code);
|
passthru('tar cvf be.bastelstu.wcf.chat.tar * --exclude=file --exclude=template --exclude=acptemplate --exclude=build.php', $code);
|
||||||
|
if (file_exists('package.xml.old')) {
|
||||||
|
file_put_contents('package.xml', file_get_contents('package.xml.old'));
|
||||||
|
unlink('package.xml.old');
|
||||||
|
}
|
||||||
if ($code != 0) exit($code);
|
if ($code != 0) exit($code);
|
||||||
|
|
||||||
if (file_exists('file.tar')) unlink('file.tar');
|
if (file_exists('file.tar')) unlink('file.tar');
|
||||||
|
Loading…
Reference in New Issue
Block a user