Ensure that the built PdfJsDefaultPreferences.jsm
file won't be affected/touched during tree-wide ESLint rule changes in mozilla-central
(PR 9571 follow-up)
Also updates the edit warning, such that the wording is more consistent.
This commit is contained in:
parent
436d2efa8a
commit
694afcd60b
@ -751,15 +751,17 @@ function preprocessDefaultPreferences(content) {
|
||||
var preprocessor2 = require('./external/builder/preprocessor2.js');
|
||||
var licenseHeader = fs.readFileSync('./src/license_header.js').toString();
|
||||
|
||||
var GLOBALS = '/* eslint-disable */\n';
|
||||
var MODIFICATION_WARNING =
|
||||
'//\n// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT EDIT MANUALLY!\n//\n';
|
||||
'//\n// THIS FILE IS GENERATED AUTOMATICALLY, DO NOT EDIT MANUALLY!\n//\n';
|
||||
|
||||
content = preprocessor2.preprocessPDFJSCode({
|
||||
rootPath: __dirname,
|
||||
defines: DEFINES,
|
||||
}, content);
|
||||
|
||||
return licenseHeader + '\n' + MODIFICATION_WARNING + '\n' + content + '\n';
|
||||
return (licenseHeader + '\n' + GLOBALS + '\n' + MODIFICATION_WARNING + '\n' +
|
||||
content + '\n');
|
||||
}
|
||||
|
||||
gulp.task('mozcentral-pre', ['buildnumber', 'locale'], function () {
|
||||
|
Loading…
Reference in New Issue
Block a user