Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use a log and a cron

  • Loading branch information...
commit 250fc190baeadbebe0f405e515f4451966a1d146 1 parent 1882c7a
@eddiemonge eddiemonge authored
Showing with 7 additions and 4 deletions.
  1. +4 −2 Makefile
  2. +3 −2 latest.php
View
6 Makefile
@@ -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
5 latest.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.