mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Properly exclude package.xml.old
Untested changes ftw!
This commit is contained in:
parent
8033dea3e6
commit
9d80fcb6e2
@ -74,7 +74,7 @@
|
|||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
EOT;
|
EOT;
|
||||||
passthru('tar cvf ../file.tar * --exclude=*.old --exclude=*.coffee --exclude=*.scss --exclude=.sass-cache', $code);
|
passthru('tar cvf ../file.tar * --exclude=*.coffee --exclude=*.scss --exclude=.sass-cache', $code);
|
||||||
if ($code != 0) exit($code);
|
if ($code != 0) exit($code);
|
||||||
echo <<<EOT
|
echo <<<EOT
|
||||||
|
|
||||||
@ -103,7 +103,7 @@
|
|||||||
chdir('..');
|
chdir('..');
|
||||||
file_put_contents('package.xml.old', file_get_contents('package.xml'));
|
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')));
|
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=*.old --exclude=file --exclude=template --exclude=acptemplate --exclude=build.php', $code);
|
||||||
if (file_exists('package.xml.old')) {
|
if (file_exists('package.xml.old')) {
|
||||||
file_put_contents('package.xml', file_get_contents('package.xml.old'));
|
file_put_contents('package.xml', file_get_contents('package.xml.old'));
|
||||||
unlink('package.xml.old');
|
unlink('package.xml.old');
|
||||||
|
Loading…
Reference in New Issue
Block a user