mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Check if there are any unpreprocessed files
This commit is contained in:
parent
0e70c6dfec
commit
f13c934a8f
1 changed files with 7 additions and 0 deletions
|
|
@ -541,6 +541,13 @@ class Build(MachCommandBase):
|
|||
# as when doing OSX Universal builds)
|
||||
pass
|
||||
|
||||
# Check if there are any unpreprocessed files
|
||||
grepcmd = 'grep -E -r "^(#|%)ifdef" --include=\*.{js\*,css,x\*,h\*,manifest,dtd,properties} '\
|
||||
+ self.topobjdir + '/dist/bin'
|
||||
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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue