diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-06-01 00:54:53 +0300 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-06-01 00:54:53 +0300 |
commit | 0468922b50702cbaa6f1c26c7f982eb8100915f6 (patch) | |
tree | 5ad19e8e0be217a623e408e7200f6c01f3e8b6cf /python | |
parent | 3ab978b4a4df6548a7b1c490c8a3754476b16054 (diff) | |
download | UXP-0468922b50702cbaa6f1c26c7f982eb8100915f6.tar UXP-0468922b50702cbaa6f1c26c7f982eb8100915f6.tar.gz UXP-0468922b50702cbaa6f1c26c7f982eb8100915f6.tar.lz UXP-0468922b50702cbaa6f1c26c7f982eb8100915f6.tar.xz UXP-0468922b50702cbaa6f1c26c7f982eb8100915f6.zip |
Check if there are any unpreprocessed files
Diffstat (limited to 'python')
-rw-r--r-- | python/mozbuild/mozbuild/mach_commands.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py index f654db769..9e769653e 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', |