Strip out license for bundled version.

This commit is contained in:
Brendan Dahl 2012-09-04 10:22:32 -07:00
parent 332ae4ce41
commit 76d877e48b
2 changed files with 12 additions and 1 deletions

11
make.js
View File

@ -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,

View File

@ -15,6 +15,8 @@
* limitations under the License.
*/
'use strict';
/**
* 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)