Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions DATA
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vendor/data/iso/currency/list-one.xml https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml
vendor/data/iso/currency/list-three.xml https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-three.xml
vendor/data/xbrl/utr/utr.xml https://www.xbrl.org/utr/utr.xml
vendor/data/iso/language/ISO-639-2_utf-8.txt https://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8
vendor/data/iso/language/iso-639-3_Code_Tables https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3_Code_Tables_20251015.zip
22 changes: 14 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ JSONSCHEMA ?= jsonschema
SHELLCHECK ?= shellcheck
PYTHON ?= python3
CURL ?= curl
BSDTAR ?= bsdtar
TAR ?= tar
ZIP ?= zip
UNZIP ?= unzip
Expand Down Expand Up @@ -41,13 +40,20 @@ lint: common
test:
$(JSONSCHEMA) test ./test

.PHONY: external
include generate/iso/currency/include.mk
include generate/iso/language/include.mk
include generate/iso/country/include.mk
include generate/xbrl/utr/include.mk
external: $(EXTERNAL)
generate: $(GENERATE)
build/iso/currency/list-%.json: scripts/xml2json.py vendor/data/iso/currency/list-%.xml
$(PYTHON) $< $(word 2,$^) $@
generate-iso-currency: generate/iso/currency/main.py \
build/iso/currency/list-one.json \
build/iso/currency/list-three.json
$(PYTHON) $<
generate-iso-language: generate/iso/language/main.py
$(PYTHON) $<
generate-iso-country: generate/iso/country/main.py
$(PYTHON) $<
build/xbrl/utr/%.json: scripts/xml2json.py vendor/data/xbrl/utr/%.xml
$(PYTHON) $< $(word 2,$^) $@
generate-xbrl-utr: generate/xbrl/utr/main.py build/xbrl/utr/utr.json
$(PYTHON) $<

# TODO: Add a `jsonschema pkg` command instead
.PHONY: dist
Expand Down
Loading