From 0017bcbb916f13d37748e4615c58035ec683b368 Mon Sep 17 00:00:00 2001 From: Matthew Tylee Atkinson Date: Sun, 15 Dec 2019 11:02:19 +0000 Subject: [PATCH] docs(Mozilla Add-ons): Update notes for reviewers (#325) This updates the notes for building from source, for Mozilla reviewers. Closes #322 --- meta/amo-info-and-download.sh | 19 ++++++++++++------- meta/amo-info.template | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/meta/amo-info-and-download.sh b/meta/amo-info-and-download.sh index 237b4e47..6d71dc07 100755 --- a/meta/amo-info-and-download.sh +++ b/meta/amo-info-and-download.sh @@ -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 diff --git a/meta/amo-info.template b/meta/amo-info.template index fc9adb9d..56090981 100644 --- a/meta/amo-info.template +++ b/meta/amo-info.template @@ -8,7 +8,7 @@ The attached source is from the VERSION_NUMBER tag: