mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-05-26 21:30:28 +00:00
Issue #1497 Revert "Check if there are any unpreprocessed files"
This reverts PR #429
This commit is contained in:
@@ -541,16 +541,6 @@ class Build(MachCommandBase):
|
||||
# as when doing OSX Universal builds)
|
||||
pass
|
||||
|
||||
# Check if there are any unpreprocessed files in '@MOZ_OBJDIR@/dist/bin'
|
||||
# See python/mozbuild/mozbuild/preprocessor.py#L293-L309 for the list of directives
|
||||
# We skip if, ifdef, ifndef, else, elif, elifdef and elifndef, because they are never used alone
|
||||
grepcmd = 'grep -E -r "^(#|%)(define|endif|error|expand|filter|include|literal|undef|unfilter)" '\
|
||||
+ '--include=\*.{css,dtd,html,js,jsm,xhtml,xml,xul,manifest,properties,rdf} '\
|
||||
+ self.topobjdir + '/dist/bin | awk "/\.css:%/ || (!/\.css/ && /:#/)"'
|
||||
grepresult = subprocess.Popen(grepcmd, stdout=subprocess.PIPE, shell=True).communicate()[0]
|
||||
if grepresult:
|
||||
print('\nERROR: preprocessor was not applied to the following files:\n\n' + grepresult)
|
||||
|
||||
return status
|
||||
|
||||
@Command('configure', category='build',
|
||||
|
||||
Reference in New Issue
Block a user