2023-11-11 18:51:05 +09:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# Copyright 2008 the V8 project authors.
|
|
|
|
# Copyright 2023 Microsoft Inc.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
from utils import SearchFiles
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
try:
|
|
|
|
files = SearchFiles(*sys.argv[2:])
|
|
|
|
files = [ os.path.relpath(x, sys.argv[1]) for x in files ]
|
2025-01-27 15:54:23 +00:00
|
|
|
# Apply the same transform in SearchFiles after relpath
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
files = [ x.replace('\\', '/') for x in files ]
|
2023-11-11 18:51:05 +09:00
|
|
|
print('\n'.join(files))
|
|
|
|
except Exception as e:
|
|
|
|
print(str(e))
|
|
|
|
sys.exit(1)
|