mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-02 03:44:43 +00:00
add scripts to manage git post hooks
This commit is contained in:
parent
4f7c08140d
commit
2e9e8f203a
2 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$file = fopen('gitstatus.log','wb');
|
||||
fwrite($file, 'NewCommit');
|
||||
close($file);
|
||||
fclose($file);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
|
||||
$file = fopen('gitstatus.log', 'r+b');
|
||||
if ( fread($file) === 'NewCommit' )
|
||||
$filename = 'gitstatus.log';
|
||||
$file = fopen($filename, 'r+b');
|
||||
if ( fread($file, filesize($filename)) === 'NewCommit' )
|
||||
{
|
||||
ftruncate($file);
|
||||
exec('git pull --quiet && make NIGHTLY_OUTPUT=latest nightly >> /dev/null 2>&1');
|
||||
ftruncate($file, 0);
|
||||
exec('git pull --quiet && make NIGHTLY_OUTPUT=latest nightly >> /dev/null 2>&1');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue