From b3582ccbaddcde30b6d8f20d2a9cc2a5419d7906 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 27 Apr 2017 22:33:53 +0200 Subject: [PATCH] Add the commit hash to the `README.mozilla` file (issue 8347) --- extensions/firefox/README.mozilla | 4 +++- gulpfile.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/firefox/README.mozilla b/extensions/firefox/README.mozilla index a83cef425..e4f77e387 100644 --- a/extensions/firefox/README.mozilla +++ b/extensions/firefox/README.mozilla @@ -1,3 +1,5 @@ -This is the pdf.js project output, https://github.com/mozilla/pdf.js +This is the PDF.js project output, https://github.com/mozilla/pdf.js Current extension version is: PDFJSSCRIPT_VERSION + +Taken from upstream commit: PDFJSSCRIPT_COMMIT diff --git a/gulpfile.js b/gulpfile.js index 2a0901862..82acf7793 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -852,7 +852,7 @@ gulp.task('mozcentral-pre', ['buildnumber', 'locale'], function () { // Clear out everything in the firefox extension build directory rimraf.sync(MOZCENTRAL_DIR); - var version = getVersionJSON().version; + var { version, commit, } = getVersionJSON(); return merge([ createBundle(defines).pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + 'build')), @@ -881,6 +881,7 @@ gulp.task('mozcentral-pre', ['buildnumber', 'locale'], function () { .pipe(gulp.dest(MOZCENTRAL_L10N_DIR)), gulp.src(FIREFOX_EXTENSION_DIR + 'README.mozilla') .pipe(replace(/\bPDFJSSCRIPT_VERSION\b/g, version)) + .pipe(replace(/\bPDFJSSCRIPT_COMMIT\b/g, commit)) .pipe(gulp.dest(MOZCENTRAL_EXTENSION_DIR)), gulp.src('LICENSE').pipe(gulp.dest(MOZCENTRAL_EXTENSION_DIR)), gulp.src(FIREFOX_EXTENSION_DIR + 'tools/l10n.js')