Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make --clean work

Test Plan:
  diviner .
  diviner --clean .

Reviewers: epriestley

Reviewed By: epriestley

CC: aran

Differential Revision: https://secure.phabricator.com/D2149
  • Loading branch information...
commit 4a7dbb188377b9f3dd790c7cd5911cf62333c6a1 1 parent f8e35a3
vrana authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 scripts/diviner_publish.php
View
8 scripts/diviner_publish.php
@@ -94,7 +94,7 @@
$files[$file].'.'.
$engine_name;
- if (Filesystem::pathExists($cache_loc[$file])) {
+ if (!$full_rebuild && Filesystem::pathExists($cache_loc[$file])) {
$data = Filesystem::readFile($cache_loc[$file]);
$atoms = unserialize($data);
if ($atoms) {
@@ -107,8 +107,10 @@
Filesystem::resolvePath($file, $root));
}
- $n = number_format(count($files) - count($file_map) - $skipped);
- echo "[{$engine_name}] Found {$n} files in cache...\n";
+ if (!$full_rebuild) {
+ $n = number_format(count($files) - count($file_map) - $skipped);
+ echo "[{$engine_name}] Found {$n} files in cache...\n";
+ }
$n = number_format(count($file_map));
echo "[{$engine_name}] Parsing documentation for {$n} files...";
Please sign in to comment.
Something went wrong with that request. Please try again.