sb: Add an orphan check to sb-check.

The orphans check lets you see which configuration and build set
files in the RSB are not referernced. You can audit the list and
remove any configuration files not being used. Top level
build set files are included so you need to becareful not to
remove something that is valid and useful. To run:

 $ ./source-builder/sb-check --check-orphans
This commit is contained in:
Chris Johns
2018-01-18 13:16:47 +11:00
parent f3b1700dfd
commit 3ddbd791b8
2 changed files with 115 additions and 3 deletions

View File

@@ -92,6 +92,14 @@ def abspath(path):
path = shell(path)
return shell(os.path.abspath(host(path)))
def relpath(path, start = None):
path = shell(path)
if start is None:
path = os.path.relpath(host(path))
else:
path = os.path.relpath(host(path), start)
return shell(path)
def splitext(path):
path = shell(path)
root, ext = os.path.splitext(host(path))