Skip to content

Commit 4e57bbb

Browse files
authored
Use revcheck information generated by doc-base/scripts/translation/genrevdb.php (#58)
1 parent 31cfd3f commit 4e57bbb

12 files changed

+228
-1224
lines changed

build-ops.php.sample

Lines changed: 0 additions & 5 deletions
This file was deleted.

build-ops.sample

Lines changed: 0 additions & 10 deletions
This file was deleted.

include/init.inc.php

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,19 @@
2121
*/
2222

2323
// get paths
24-
$build_ops = dirname(realpath(__FILE__)) . '/../build-ops.php';
25-
if (file_exists($build_ops)) {
26-
require_once($build_ops);
27-
} else {
28-
$GIT_DIR = getenv('PHPDOC_GIT_DIR');
29-
if ($GIT_DIR == '') {
30-
die("Unable to find Git repositories, set `PHPDOC_GIT_DIR` environment variable!");
31-
}
32-
$GIT_DIR .= (substr($GIT_DIR, -1) == '/' ? '' : '/');
33-
define('GIT_DIR', $GIT_DIR);
24+
$GIT_DIR = getenv('PHPDOC_GIT_DIR');
25+
if ($GIT_DIR == '') {
26+
die("Unable to find Git repositories, set `PHPDOC_GIT_DIR` environment variable!");
27+
}
28+
$GIT_DIR .= (substr($GIT_DIR, -1) == '/' ? '' : '/');
29+
define('GIT_DIR', $GIT_DIR);
3430

35-
$SQLITE_DIR = getenv('SQLITE_DIR');
36-
if ($SQLITE_DIR == '') {
37-
die("Don't know where to place SQLite database, set `SQLITE_DIR` enviromment variable!");
38-
}
39-
$SQLITE_DIR .= (substr($SQLITE_DIR, -1) == '/' ? '' : '/');
40-
define('SQLITE_DIR', $SQLITE_DIR);
31+
$SQLITE_DIR = getenv('SQLITE_DIR');
32+
if ($SQLITE_DIR == '') {
33+
die("Don't know where to find SQLite database, set `SQLITE_DIR` enviromment variable!");
4134
}
35+
$SQLITE_DIR .= (substr($SQLITE_DIR, -1) == '/' ? '' : '/');
36+
define('SQLITE_DIR', $SQLITE_DIR);
4237

4338
// Cache is considered stale after (seconds):
4439
define('CACHE_BUGS_COUNT', 300); // 300 = 5mins

0 commit comments

Comments
 (0)