Keeping l10n.js file reference; removing temp/unused files
This commit is contained in:
parent
00543a1c89
commit
bc094a84f4
3
make.js
3
make.js
@ -280,7 +280,6 @@ target.firefox = function() {
|
|||||||
// Modify the viewer so it does all the extension-only stuff.
|
// Modify the viewer so it does all the extension-only stuff.
|
||||||
cd(FIREFOX_BUILD_CONTENT_DIR + '/web');
|
cd(FIREFOX_BUILD_CONTENT_DIR + '/web');
|
||||||
sed('-i', /.*PDFJSSCRIPT_INCLUDE_BUNDLE.*\n/, cat(ROOT_DIR + BUILD_TARGET), 'viewer-snippet-firefox-extension.html');
|
sed('-i', /.*PDFJSSCRIPT_INCLUDE_BUNDLE.*\n/, cat(ROOT_DIR + BUILD_TARGET), 'viewer-snippet-firefox-extension.html');
|
||||||
sed('-i', /.*PDFJSSCRIPT_OTHER_SCRIPTS.*\n/, cat(ROOT_DIR + 'external/webL10n/l10n.js'), 'viewer-snippet-firefox-extension.html');
|
|
||||||
sed('-i', /PDFJSSCRIPT_LOCALE_DATA/, JSON.stringify({text: LOCALE_CONTENT}), 'viewer-snippet-firefox-extension.html');
|
sed('-i', /PDFJSSCRIPT_LOCALE_DATA/, JSON.stringify({text: LOCALE_CONTENT}), 'viewer-snippet-firefox-extension.html');
|
||||||
sed('-i', /.*PDFJSSCRIPT_REMOVE_CORE.*\n/g, '', 'viewer.html');
|
sed('-i', /.*PDFJSSCRIPT_REMOVE_CORE.*\n/g, '', 'viewer.html');
|
||||||
sed('-i', /.*PDFJSSCRIPT_REMOVE_FIREFOX_EXTENSION.*\n/g, '', 'viewer.html');
|
sed('-i', /.*PDFJSSCRIPT_REMOVE_FIREFOX_EXTENSION.*\n/g, '', 'viewer.html');
|
||||||
@ -289,6 +288,8 @@ target.firefox = function() {
|
|||||||
|
|
||||||
// We don't need pdf.js anymore since its inlined
|
// We don't need pdf.js anymore since its inlined
|
||||||
rm('-Rf', FIREFOX_BUILD_CONTENT_DIR + BUILD_DIR);
|
rm('-Rf', FIREFOX_BUILD_CONTENT_DIR + BUILD_DIR);
|
||||||
|
rm(FIREFOX_BUILD_CONTENT_DIR + '/web/viewer-snippet-firefox-extension.html');
|
||||||
|
rm(FIREFOX_BUILD_CONTENT_DIR + '/web/locale.properties');
|
||||||
// Remove '.DS_Store' and other hidden files
|
// Remove '.DS_Store' and other hidden files
|
||||||
find(FIREFOX_BUILD_DIR).forEach(function(file) {
|
find(FIREFOX_BUILD_DIR).forEach(function(file) {
|
||||||
if (file.match(/^\./))
|
if (file.match(/^\./))
|
||||||
|
@ -10,9 +10,8 @@
|
|||||||
script.text = localeData.text;
|
script.text = localeData.text;
|
||||||
document.getElementsByTagName('head')[0].appendChild(script);
|
document.getElementsByTagName('head')[0].appendChild(script);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
/* PDFJSSCRIPT_OTHER_SCRIPTS */
|
|
||||||
</script>
|
</script>
|
||||||
|
<script type="text/javascript" src="l10n.js"></script>
|
||||||
<script type="text/javascript" id="PDFJS_SCRIPT_TAG">
|
<script type="text/javascript" id="PDFJS_SCRIPT_TAG">
|
||||||
<!--
|
<!--
|
||||||
// pdf.js is inlined here because resource:// urls won't work
|
// pdf.js is inlined here because resource:// urls won't work
|
||||||
|
Loading…
Reference in New Issue
Block a user