1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-21 22:32:41 +01:00
phorge-arcanist/scripts
epriestley e9a6cd26fc Provide a simpler library map rebuild script
Summary:
Modernize `phutil_mapper.php` to prepare for killing `__init__.php`.

The current mapper is module-oriented and complex. Instead, make the mapper file-oriented and simpler.

We build a one-to-one cache of file content to symbols (built with `phutil_symbols.php`) and then write a simpler map. See some discussion in D2561.

Also make the script less messy/bad in general. It may be useful to compare this to phutil_mapper.php.

(Additionally, we now write versions into the library map and cache.)

NOTE: Nothing can read this new map right now, of course.

Test Plan: Ran "phutil_rebuild_map.php src/" in phabricator/ with --quiet, --drop-caches, etc. Verified cache file, cache behavior, and generated map output.

Reviewers: vrana, nh, btrahan

Reviewed By: vrana

CC: aran

Maniphest Tasks: T1103

Differential Revision: https://secure.phabricator.com/D2562
2012-05-27 12:57:27 -07:00
..
__init_script__.php Change order of include_path 2012-05-25 10:08:28 -07:00
arcanist.php Allow users to define shell aliases in arc with "!" 2012-05-23 17:52:37 -07:00
phutil_analyzer.php Help the analyzer find phutil_is_hiphop_runtime 2012-05-01 18:16:11 -07:00
phutil_mapper.php 'arc liberate', convenience wrapper for various libphutil operations 2011-05-17 09:53:19 -07:00
phutil_rebuild_map.php Provide a simpler library map rebuild script 2012-05-27 12:57:27 -07:00
phutil_symbols.php Provide a simpler analyzer script for killing __init__.php 2012-05-24 10:56:56 -07:00