mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Include git id in built package.xml
This commit is contained in:
parent
a0ed005a87
commit
36d0dcc214
@ -103,6 +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')));
|
||||||
|
file_put_contents('package.xml', str_replace('</version>', '</version><!-- git id '.trim(shell_exec('git describe --always')).' -->', file_get_contents('package.xml')));
|
||||||
passthru('tar cvf be.bastelstu.chat.tar * --exclude=*.old --exclude=file --exclude=template --exclude=acptemplate --exclude=contrib', $code);
|
passthru('tar cvf be.bastelstu.chat.tar * --exclude=*.old --exclude=file --exclude=template --exclude=acptemplate --exclude=contrib', $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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user