Skip to content

Commit 250fc19

Browse files
committed
use a log and a cron
1 parent 1882c7a commit 250fc19

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ DIR = jquery.mobile-${VER}
1818
# The output folder for the finished files
1919
OUTPUT = compiled
2020

21+
# Command to remove the latest directory from the CDN before uploading, only if using latest target
22+
RMLATEST = ''
23+
2124
# The output folder for the nightly files.
2225
NIGHTLY_OUTPUT = nightlies/${DATE}
2326
ifeq (${NIGHTLY_OUTPUT}, latest)
2427
RMLATEST = ssh jqadmin@code.origin.jquery.com 'rm -rf /var/www/html/code.jquery.com/mobile/latest'
25-
else
26-
RMLATEST = ''
28+
DIR = jquery.mobile
2729
endif
2830
NIGHTLY_WEBPATH = http://code.jquery.com/mobile/${NIGHTLY_OUTPUT}
2931

latest.php

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

0 commit comments

Comments
 (0)