mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Strip out license for bundled version.
This commit is contained in:
parent
332ae4ce41
commit
76d877e48b
2 changed files with 12 additions and 1 deletions
11
make.js
11
make.js
|
@ -214,12 +214,14 @@ target.bundle = function() {
|
|||
'pattern.js',
|
||||
'stream.js',
|
||||
'worker.js',
|
||||
'../external/jpgjs/jpg.js',
|
||||
'jpx.js',
|
||||
'jbig2.js',
|
||||
'bidi.js',
|
||||
'metadata.js'];
|
||||
|
||||
var EXT_SRC_FILES = [
|
||||
'../external/jpgjs/jpg.js'];
|
||||
|
||||
if (!test('-d', BUILD_DIR))
|
||||
mkdir(BUILD_DIR);
|
||||
|
||||
|
@ -230,6 +232,13 @@ target.bundle = function() {
|
|||
|
||||
crlfchecker.checkIfCrlfIsPresent(SRC_FILES);
|
||||
|
||||
// Strip out all the vim/license headers.
|
||||
var reg = /\n\/\* -\*- Mode(.|\n)*?Mozilla Foundation(.|\n)*?'use strict';/g;
|
||||
bundle = bundle.replace(reg, '');
|
||||
|
||||
// Append external files last since we don't want to modify them.
|
||||
bundle += cat(EXT_SRC_FILES);
|
||||
|
||||
// This just preprocesses the empty pdf.js file, we don't actually want to
|
||||
// preprocess everything yet since other build targets use this file.
|
||||
builder.preprocess('pdf.js', ROOT_DIR + BUILD_TARGET,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue