diff options
author | david <public@beloved.name> | 2018-07-04 01:31:32 +0200 |
---|---|---|
committer | david <public@beloved.name> | 2018-07-04 01:31:32 +0200 |
commit | 49145968147ca2e5938a21631ed449a6e383deee (patch) | |
tree | 2dd8d1fab5d2a21060c19d3dba5a54711edd9e61 /addons.mozilla.org-fsd/get-data/license-reporter | |
parent | 76f64eb762434f5bafc38c5fdaba0d681ed6a444 (diff) |
Added err and sourced it in doall.sh and license-reporter
Diffstat (limited to 'addons.mozilla.org-fsd/get-data/license-reporter')
-rwxr-xr-x | addons.mozilla.org-fsd/get-data/license-reporter | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/addons.mozilla.org-fsd/get-data/license-reporter b/addons.mozilla.org-fsd/get-data/license-reporter index 9bf4263..3e01334 100755 --- a/addons.mozilla.org-fsd/get-data/license-reporter +++ b/addons.mozilla.org-fsd/get-data/license-reporter @@ -1,5 +1,4 @@ #!/usr/bin/env bash - # This file is part of license-reporter # Copyright (C) 2017, 2018 David Hedlund # @@ -16,6 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +source err #if [ "$data" == "search" ]; then search_page_variable='.results[]'; fi @@ -36,6 +36,7 @@ if [ "$2" == "--debug" ]; then debug=true; else debug=false; fi minimum_average_daily_users="10000"; +scriptsrc=$(readlink -f -- "${BASH_SOURCE[0]}") SCRIPTSRC=$(readlink -f "$0" || echo "$0") RUN_PATH=$(dirname "${SCRIPTSRC}" || echo .) filename=$(basename "$0"); @@ -678,15 +679,19 @@ s|http|\nhttp|g; echo "{{Entry" > wiki/$id.wiki # Dash have to be removed in jq 1.3: https://github.com/stedolan/jq/issues/341 - echo "|Name=$name + # Avoid specific versions since it's not compatible with all IceCat versions: + # |Version download=https://addons.mozilla.org/firefox/downloads/latest/$id/addon-$version_id-latest.xpi + # |Version identifier=$version + # |Version date=$version_date + + + echo "|Name=$name |Short description=$short_description |Full description=$full_description |Homepage URL=$homepage_url |Extension of=$extension_of |VCS checkout command=$vcs_checkout_command -|Version identifier=$version -|Version date=$version_date -|Version download=https://addons.mozilla.org/firefox/downloads/latest/$id/addon-$version_id-latest.xpi +|Version download=https://addons.mozilla.org/en-US/firefox/addon/$slug/versions/ |Last review by=$last_review_by |Last review date=$last_review_date |Submitted by=$submitted_by @@ -700,6 +705,8 @@ s|http|\nhttp|g; echo "{{Project license |License=$license |License copyright=$license_copyright +|License note=\"License: $original_license\" listed +at https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/ }}" >> wiki/$id.wiki if [[ "$support_url" != "" ]]; |