mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user