Skip to content

Commit

Permalink
Merge pull request #8348 from Snuffleupagus/README.mozilla-commit
Browse files Browse the repository at this point in the history
Add the commit hash to the `README.mozilla` file (issue 8347)
  • Loading branch information
timvandermeij committed Apr 27, 2017
2 parents 7fd2084 + b3582cc commit 499c605
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion 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
3 changes: 2 additions & 1 deletion gulpfile.js
Expand Up @@ -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')),
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 499c605

Please sign in to comment.