jquery-mobile/gitpushlatest.php
2011-05-11 19:19:35 -07:00

10 lines
273 B
PHP
Executable file

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