use a log and a cron

This commit is contained in:
eddiemonge 2011-04-13 15:32:57 -07:00
parent 1882c7ab56
commit 250fc190ba
2 changed files with 7 additions and 4 deletions

View file

@ -18,12 +18,14 @@ DIR = jquery.mobile-${VER}
# The output folder for the finished files
OUTPUT = compiled
# Command to remove the latest directory from the CDN before uploading, only if using latest target
RMLATEST = ''
# The output folder for the nightly files.
NIGHTLY_OUTPUT = nightlies/${DATE}
ifeq (${NIGHTLY_OUTPUT}, latest)
RMLATEST = ssh jqadmin@code.origin.jquery.com 'rm -rf /var/www/html/code.jquery.com/mobile/latest'
else
RMLATEST = ''
DIR = jquery.mobile
endif
NIGHTLY_WEBPATH = http://code.jquery.com/mobile/${NIGHTLY_OUTPUT}

View file

@ -1,3 +1,4 @@
<?php
// This file is for the jQuery team only. This is the post commit hook
exec('git pull --quiet && make NIGHTLY_OUTPUT=latest nightly >> /dev/null 2>&1');
$file = fopen('gitstatus.log','wb');
fwrite($file, 'NewCommit');
close($file);