jquery-mobile/gitpushlatest.php
2011-04-13 15:40:13 -07:00

9 lines
189 B
PHP

<?php
$file = fopen('gitstatus.log', 'r+b');
if ( fread($file) === 'NewCommit' )
{
ftruncate($file);
exec('git pull --quiet && make NIGHTLY_OUTPUT=latest nightly >> /dev/null 2>&1');
}