summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_make_world_license.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_world_license.sh b/scripts/lib/ptxd_make_world_license.sh
index 8681aabb8..1a79387b0 100644
--- a/scripts/lib/ptxd_make_world_license.sh
+++ b/scripts/lib/ptxd_make_world_license.sh
@@ -288,12 +288,15 @@ ptxd_create_section_from_license()
IFS=$'(), '
for license in ${1}; do
+ local deprecated="false"
local osi="false"
local exception="false"
# remove the 'or later' modifier
license="${license%+}"
if ptxd_make_spdx "${license}"; then
- if [ "${osi}" == "true" ]; then
+ if [ "${deprecated}" == "true" ]; then
+ section[deprecated]="true"
+ elif [ "${osi}" == "true" ]; then
section[osi-conform]="true"
elif [ "${exception}" != "true" ]; then
section[misc]="true"
@@ -328,7 +331,9 @@ ptxd_create_section_from_license()
echo "${!section[@]}"
return 0
fi
- if [ "${section[other]}" = "true" ]; then
+ if [ "${section[deprecated]}" = "true" ]; then
+ echo "deprecated"
+ elif [ "${section[other]}" = "true" ]; then
echo "other"
else
echo "mixed"