Add script to clean up orphaned .pyc files.

Whenever we refactor file names, it often leaves behind a .pyc file.
These files still get discovered when running commands and unit
tests, and can lead to accidental failures.

Also add this script to run on PREUPLOAD.  Since repo currently does
not provide a method of running hooks on a sync, this is the best
we can do at the moment.

Bug: 28053765
Test: `./tools/cleanup.py` lists my orphaned .pyc files.
      Does not delete them unless inputting 'y' at the prompt.
Test: `./tools/cleanup.py --quiet --yes` automatically cleans
      up all orphaned .pyc files.
Test: Orphaned .pyc files are cleaned up when uploading this CL.

Change-Id: I5c1cada450b448938d285c5802499a3a890fe215
2 files changed
tree: 74293d046adf4d47ad329d5e840ee47dcdc06420
  1. brunch/
  2. build/
  3. cli/
  4. debugging/
  5. pkgconfig/
  6. schema/
  7. tools/
  8. .gitignore
  9. Android.mk
  10. CHANGES.md
  11. MODULE_LICENSE_APACHE2
  12. NOTICE
  13. PREUPLOAD.cfg
  14. README.md
  15. VERSION
README.md

The Brillo Developer Kit (BDK)

This is the bdk which is used to build Brillo.

Directory Listing

  • cli/: The main body of code that makes up the bdk tool.
  • schema/: Specification for the user's project.xml files.
  • CHANGES: A log highlighting major features across releases.
  • VERSION: This file should be the source of truth of the version number for a checkout. It will be updated by Builders and used by tools needing version information.