diff options
Diffstat (limited to 'subprojects/freeamo/src/make-wiki')
-rw-r--r-- | subprojects/freeamo/src/make-wiki | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/subprojects/freeamo/src/make-wiki b/subprojects/freeamo/src/make-wiki index e679bf7..8e85c51 100644 --- a/subprojects/freeamo/src/make-wiki +++ b/subprojects/freeamo/src/make-wiki @@ -60,14 +60,14 @@ while IFS= read -r table; do amo_variables amo_variables__licenses - if [ "$license__amo_full_name" == "BSD License" ]; then license__fsd_short_name="BSD 2Clause"; - elif [ "$license__amo_full_name" == "GNU General Public License, version 3.0" ]; then license__fsd_short_name="GPLv3"; - elif [ "$license__amo_full_name" == "GNU General Public License, version 2.0" ]; then license__fsd_short_name="GPLv2"; - elif [ "$license__amo_full_name" == "GNU Lesser General Public License, version 3.0" ]; then license__fsd_short_name="LGPLv3"; - elif [ "$license__amo_full_name" == "GNU Lesser General Public License, version 2.1" ]; then license__fsd_short_name="LGPLv2.1"; - elif [ "$license__amo_full_name" == "MIT/X11 License" ]; then license__fsd_short_name="X11"; - elif [ "$license__amo_full_name" == "Mozilla Public License, version 2.0" ]; then license__fsd_short_name="MPLv2.0"; - elif [ "$license__amo_full_name" == "Mozilla Public License Version 1.1" ]; then license__fsd_short_name="MPLv1.1"; + if [ "$license__amo_full_name" == "BSD License" ]; then license__spdx_short_identifier="BSD-2-Clause"; + elif [ "$license__amo_full_name" == "GNU General Public License, version 3.0" ]; then license__spdx_short_identifier="GPL-3.0"; + elif [ "$license__amo_full_name" == "GNU General Public License, version 2.0" ]; then license__spdx_short_identifier="GPL-2.0"; + elif [ "$license__amo_full_name" == "GNU Lesser General Public License, version 3.0" ]; then license__spdx_short_identifier="LGPL-3.0"; + elif [ "$license__amo_full_name" == "GNU Lesser General Public License, version 2.1" ]; then license__spdx_short_identifier="LGPL-2.1"; + elif [ "$license__amo_full_name" == "MIT/X11 License" ]; then license__spdx_short_identifier="X11"; + elif [ "$license__amo_full_name" == "Mozilla Public License, version 2.0" ]; then license__spdx_short_identifier="MPL-2.0"; + elif [ "$license__amo_full_name" == "Mozilla Public License Version 1.1" ]; then license__spdx_short_identifier="MPL-1.1"; fi # Start localization code @@ -177,7 +177,7 @@ while IFS= read -r table; do # https://addons.mozilla.org/api/v3/addons/addon/noscript/versions/1910123/ echo "{{Project license -|License=$license__fsd_short_name +|License=$license__spdx_short_identifier |License copyright=$license_copyright |License note=\"License: $license__amo_full_name\" listed at https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/ @@ -199,7 +199,7 @@ at https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/ echo "|- | [[$slug|$name]] | $short_description -| [[License:$license__fsd_short_name|$license__fsd_short_name]] +| [[License:$license__spdx_short_identifier|$license__spdx_short_identifier]] | $average_daily_users | $bayesian_average__simple | $last_updated |