Skip to content

Commit

Permalink
docs(Mozilla Add-ons): Update notes for reviewers (#325)
Browse files Browse the repository at this point in the history
This updates the notes for building from source, for Mozilla reviewers.

Closes #322
  • Loading branch information
matatk authored Dec 15, 2019
1 parent 859c21b commit 0017bcb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions meta/amo-info-and-download.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
#!/bin/sh
in='meta/amo-info.template'
tag=$(git describe --tags --abbrev=0)
changelog_line=$(grep $tag CHANGELOG.md)
changelog_date=$(echo "$changelog_line" | egrep -o '\d{4}-\d{2}-\d{2}')
tag_without_dots=$(echo $tag | tr -d .)
changelog_line=$(grep "$tag" CHANGELOG.md)
changelog_date=$(echo "$changelog_line" | grep -Eo '\d{4}-\d{2}-\d{2}')
tag_without_dots=$(echo "$tag" | tr -d .)
changelog_anchor="$tag_without_dots-$changelog_date"

cat $in | sed \
sed \
-e "s/CHANGELOG_ANCHOR/$changelog_anchor/g" \
-e "s/VERSION_NUMBER/$tag/g"
-e "s/VERSION_NUMBER/$tag/g" \
< $in

echo
github_code_url="https://github.com/matatk/landmarks/archive/$tag.zip"
curl --remote-name --remote-header-name --location $github_code_url
github_zip_file=$tag.zip
github_code_url="https://github.com/matatk/landmarks/archive/$github_zip_file"
curl \
--location "$github_code_url" \
--remote-name \
--remote-header-name
2 changes: 1 addition & 1 deletion meta/amo-info.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The attached source is from the VERSION_NUMBER tag: <https://github.com/matatk/l

Required software for the build:

* git - needed to fetch my "one-svg-to-many-sized-pngs" node package from GitHub.
* git - needed to fetch my "one-svg-to-many-sized-pngs" and "page-structural-semantics-scanner-tests" node packages from GitHub.
* Node and npm.

To build for Firefox specifically:
Expand Down

0 comments on commit 0017bcb

Please sign in to comment.