Merge pull request #814 from arturadib/build-ver
Macro for generating version information
This commit is contained in:
commit
715e7f6a4b
1
Makefile
1
Makefile
@ -63,6 +63,7 @@ bundle: | $(BUILD_DIR)
|
|||||||
@cd src; \
|
@cd src; \
|
||||||
cat $(PDF_JS_FILES) > all_files.tmp; \
|
cat $(PDF_JS_FILES) > all_files.tmp; \
|
||||||
sed '/PDFJSSCRIPT_INCLUDE_ALL/ r all_files.tmp' pdf.js > ../$(BUILD_TARGET); \
|
sed '/PDFJSSCRIPT_INCLUDE_ALL/ r all_files.tmp' pdf.js > ../$(BUILD_TARGET); \
|
||||||
|
sed -i '' "s/PDFJSSCRIPT_BUNDLE_VER/`git log --format="%H" -n 1`/" ../$(BUILD_TARGET); \
|
||||||
rm -f *.tmp; \
|
rm -f *.tmp; \
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
@ -7,8 +7,9 @@ var PDFJS = {};
|
|||||||
// Use strict in our context only - users might not want it
|
// Use strict in our context only - users might not want it
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
PDFJS.build = "PDFJSSCRIPT_BUNDLE_VER";
|
||||||
|
|
||||||
// Files are inserted below - see Makefile
|
// Files are inserted below - see Makefile
|
||||||
/* PDFJSSCRIPT_INCLUDE_ALL */
|
/* PDFJSSCRIPT_INCLUDE_ALL */
|
||||||
|
|
||||||
}).call((typeof window === 'undefined') ? this : window);
|
}).call((typeof window === 'undefined') ? this : window);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user