We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d04bd2 + 5e0d704 commit 715e7f6Copy full SHA for 715e7f6
Makefile
@@ -63,6 +63,7 @@ bundle: | $(BUILD_DIR)
63
@cd src; \
64
cat $(PDF_JS_FILES) > all_files.tmp; \
65
sed '/PDFJSSCRIPT_INCLUDE_ALL/ r all_files.tmp' pdf.js > ../$(BUILD_TARGET); \
66
+ sed -i '' "s/PDFJSSCRIPT_BUNDLE_VER/`git log --format="%H" -n 1`/" ../$(BUILD_TARGET); \
67
rm -f *.tmp; \
68
cd ..
69
src/pdf.js
@@ -7,8 +7,9 @@ var PDFJS = {};
7
// Use strict in our context only - users might not want it
8
'use strict';
9
10
+ PDFJS.build = "PDFJSSCRIPT_BUNDLE_VER";
11
+
12
// Files are inserted below - see Makefile
13
/* PDFJSSCRIPT_INCLUDE_ALL */
14
15
}).call((typeof window === 'undefined') ? this : window);
-
0 commit comments