mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Port the mozcentralbaseline
target to Gulp
The baseline fix is dead code since three years, so we can safely remove it.
This commit is contained in:
parent
165294a05f
commit
74854fb4cc
2 changed files with 26 additions and 33 deletions
34
make.js
34
make.js
|
@ -223,39 +223,7 @@ target.baseline = function() {
|
|||
};
|
||||
|
||||
target.mozcentralbaseline = function() {
|
||||
target.baseline();
|
||||
|
||||
cd(ROOT_DIR);
|
||||
|
||||
echo();
|
||||
echo('### Creating mozcentral baseline environment');
|
||||
|
||||
var BASELINE_DIR = BUILD_DIR + 'baseline';
|
||||
var MOZCENTRAL_BASELINE_DIR = BUILD_DIR + 'mozcentral.baseline';
|
||||
if (test('-d', MOZCENTRAL_BASELINE_DIR)) {
|
||||
rm('-rf', MOZCENTRAL_BASELINE_DIR);
|
||||
}
|
||||
|
||||
cd(BASELINE_DIR);
|
||||
if (test('-d', 'build')) {
|
||||
rm('-rf', 'build');
|
||||
}
|
||||
exec('node make mozcentral');
|
||||
|
||||
cd(ROOT_DIR);
|
||||
mkdir(MOZCENTRAL_BASELINE_DIR);
|
||||
cp('-Rf', BASELINE_DIR + '/build/mozcentral/*', MOZCENTRAL_BASELINE_DIR);
|
||||
// fixing baseline
|
||||
if (test('-f', MOZCENTRAL_BASELINE_DIR +
|
||||
'/browser/extensions/pdfjs/PdfStreamConverter.js')) {
|
||||
rm(MOZCENTRAL_BASELINE_DIR +
|
||||
'/browser/extensions/pdfjs/PdfStreamConverter.js');
|
||||
}
|
||||
|
||||
cd(MOZCENTRAL_BASELINE_DIR);
|
||||
exec('git init');
|
||||
exec('git add .');
|
||||
exec('git commit -m "mozcentral baseline"');
|
||||
execGulp('mozcentralbaseline');
|
||||
};
|
||||
|
||||
target.mozcentraldiff = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue