1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-08 16:02:40 +01:00
phorge-phorge/scripts/symbols
Joshua Spence ba25586016 Improve symbol generation scripts
Summary: Currently the symbol generation scripts fail if passed a list containing no files because `explode("\n", $input)` returns `array("")` rather than `array()`. This means that a generic Harbormaster Build Plan with a step which executes `find . -type f -name '*.php' | ./scripts/generate_php_symbols.php` won't work because it fails in repositories that don't contain any PHP code.

Test Plan: Ran `echo | generate_php_symbols` and saw no output instead of an exception.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D19588
2018-08-16 06:40:13 +10:00
..
clear_repository_symbols.php Update import/clear symbols scripts for callsigns 2016-02-18 09:55:57 -08:00
generate_ctags_symbols.php Improve symbol generation scripts 2018-08-16 06:40:13 +10:00
generate_php_symbols.php Improve symbol generation scripts 2018-08-16 06:40:13 +10:00
import_repository_symbols.php Update import/clear symbols scripts for callsigns 2016-02-18 09:55:57 -08:00