FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing-docs/generate/pull_latest.php at macos · processing/processing-docs · GitHub
processing
processing-docs
Repository navigation
Code
Issues
3
(3)
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
processing-docs
/
generate
/
pull_latest.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (21 loc) · 736 Bytes
Breadcrumbs
processing-docs
/
generate
/
pull_latest.php
Copy path
File metadata and controls
31 lines (21 loc) · 736 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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>
Back
|
FazBrowse Home
|
New Git URL