summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-06-01 00:54:53 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-06-01 00:54:53 +0300
commit5ef52f7f0278f2607302220be425202a327c3a12 (patch)
tree5ad19e8e0be217a623e408e7200f6c01f3e8b6cf /python
parentac038bc7d2b4131e5afeec40dda0e1e35dc20777 (diff)
downloaduxp-5ef52f7f0278f2607302220be425202a327c3a12.tar.gz
Check if there are any unpreprocessed files
Diffstat (limited to 'python')
-rw-r--r--python/mozbuild/mozbuild/mach_commands.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py
index f654db7697..9e769653eb 100644
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -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',