| 1 | /* |
| 2 | Extracts license, deprecation, and exception ids from the official spdx license list data. |
| 3 | The source data needs to be manually updated by copying the licenses.json file from |
| 4 | https://github.com/spdx/license-list-data/blob/main/json/licenses.json and exceptions.json |
| 5 | file from https://github.com/spdx/license-list-data/blob/main/json/exceptions.json. |
| 6 | |
| 7 | After running the extract command, the license_ids.json, deprecated_ids.json, and exception_ids.json |
| 8 | files will be overwritten with the extracted ids. These license ids can then be used to update the |
| 9 | spdxexp/license.go file. |
| 10 | |
| 11 | Command to run all extractions (run command from the /cmd directory): |
| 12 | |
| 13 | cd cmd |
| 14 | go run . extract -l -e |
| 15 | |
| 16 | Usage options: |
| 17 | |
| 18 | -h: prints this help message |
| 19 | -l: Extract license ids |
| 20 | -e: Extract exception ids |
| 21 | */ |
| 22 | package main |