authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-03-12 16:11:45 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-03-12 16:11:45 -08:00
loga8e09a6e39e4a6259ae561ac7e98e075e84a751c
tree0d2b7de2449317d33a763e7f2e5ac546ee02126c
parent73bc4939dc6b495ce085d0e6b56b874779a2d0af

generate.sh: ensure license list is always alphabetically sorted


1 files changed, 1 insertions(+), 1 deletions(-)

generate.sh+1-1
...@@ -38,7 +38,7 @@ do_print "};"...@@ -38,7 +38,7 @@ do_print "};"
38echo "spdx:"38echo "spdx:"
39do_print39do_print
40do_print "pub const spdx = struct {"40do_print "pub const spdx = struct {"
41list=$(do_filter '.licenses[] | { licenseId, isOsiApproved, isFsfLibre, url:.seeAlso[0] }')41list=$(do_filter '.licenses | sort_by(.licenseId)[] | { licenseId, isOsiApproved, isFsfLibre, url:.seeAlso[0] }')
42for lic in $list42for lic in $list
43do43do
44 lic_id=$(sub_filter $lic '.licenseId')44 lic_id=$(sub_filter $lic '.licenseId')