mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 05:35:38 +08:00
builder.py: Fix addition of plain text files
This commit is contained in:
parent
4b724e86c0
commit
a8c55b62bb
@ -221,6 +221,9 @@ def revertFixLocalIncludes(data):
|
||||
data = re.sub('#include <rtems/bsd/local/([^>]*)>', '#include "\\1"', data)
|
||||
return data
|
||||
|
||||
def assertNothing(path):
|
||||
pass
|
||||
|
||||
def assertHeaderFile(path):
|
||||
if path[-2] != '.' or path[-1] != 'h':
|
||||
print("*** " + path + " does not end in .h")
|
||||
@ -880,7 +883,7 @@ class Module(object):
|
||||
]
|
||||
return files
|
||||
|
||||
def addPlainTextFile(self, files):
|
||||
def addPlainTextFiles(self, files):
|
||||
self.files += self.addFiles('user', files,
|
||||
FreeBSDPathComposer(), Converter(),
|
||||
Converter(), assertNothing)
|
||||
|
Loading…
x
Reference in New Issue
Block a user