Strip out license for bundled version.
This commit is contained in:
parent
332ae4ce41
commit
76d877e48b
11
make.js
11
make.js
@ -214,12 +214,14 @@ target.bundle = function() {
|
|||||||
'pattern.js',
|
'pattern.js',
|
||||||
'stream.js',
|
'stream.js',
|
||||||
'worker.js',
|
'worker.js',
|
||||||
'../external/jpgjs/jpg.js',
|
|
||||||
'jpx.js',
|
'jpx.js',
|
||||||
'jbig2.js',
|
'jbig2.js',
|
||||||
'bidi.js',
|
'bidi.js',
|
||||||
'metadata.js'];
|
'metadata.js'];
|
||||||
|
|
||||||
|
var EXT_SRC_FILES = [
|
||||||
|
'../external/jpgjs/jpg.js'];
|
||||||
|
|
||||||
if (!test('-d', BUILD_DIR))
|
if (!test('-d', BUILD_DIR))
|
||||||
mkdir(BUILD_DIR);
|
mkdir(BUILD_DIR);
|
||||||
|
|
||||||
@ -230,6 +232,13 @@ target.bundle = function() {
|
|||||||
|
|
||||||
crlfchecker.checkIfCrlfIsPresent(SRC_FILES);
|
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
|
// This just preprocesses the empty pdf.js file, we don't actually want to
|
||||||
// preprocess everything yet since other build targets use this file.
|
// preprocess everything yet since other build targets use this file.
|
||||||
builder.preprocess('pdf.js', ROOT_DIR + BUILD_TARGET,
|
builder.preprocess('pdf.js', ROOT_DIR + BUILD_TARGET,
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the main entry point for loading a PDF and interacting with it.
|
* This is the main entry point for loading a PDF and interacting with it.
|
||||||
* NOTE: If a URL is used to fetch the PDF data a standard XMLHttpRequest(XHR)
|
* NOTE: If a URL is used to fetch the PDF data a standard XMLHttpRequest(XHR)
|
||||||
|
Loading…
Reference in New Issue
Block a user