-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathpull_latest.php
More file actions
31 lines (21 loc) · 736 Bytes
/
pull_latest.php
File metadata and controls
31 lines (21 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
//
// This script, unlike others in this directory,
// only pulls in the latest files from the repo.
// It doesn't build or generate anything new.
//
// This could be nice for updating just the
// generate page itself, for example. :)
//
// - Scott
//
require_once('../config.php');
$benchmark_start = microtime_float();
$path = BASEDIR; //define('BASEDIR', dirname(__FILE__).'/');
echo "<p>Pulling in latest changes from GitHub master repository...</p>";
// Pull from GitHub
`cd $path && /usr/bin/git pull https://github.com/processing/processing-docs/`;
$benchmark_end = microtime_float();
$execution_time = round($benchmark_end - $benchmark_start, 4);
?>
<p>Generated files in <?=$execution_time?> seconds.</p>