forked from davidtodd/landmarks
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(Mozilla Add-ons): Update notes for reviewers (#325)
This updates the notes for building from source, for Mozilla reviewers. Closes #322
- Loading branch information
Showing
2 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters