File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11.DEFAULT_GOAL := all
22
33JSONSCHEMA ?= jsonschema
4+ JQ ?= jq
45SHELLCHECK ?= shellcheck
56TAR ?= tar
67ZIP ?= zip
@@ -13,9 +14,6 @@ RMRF ?= rm -rf
1314SCHEMAS = $(shell find schemas/ -type f -name '* .json')
1415TESTS = $(shell find test/ -type f -name '* .json')
1516
16- # TODO: Add a version property to `jsonschema.json`
17- VERSION = $(shell tr -d '\n\r' < VERSION)
18-
1917include generated.mk
2018
2119# TODO: Make `jsonschema fmt` automatically detect test files
4644
4745# TODO: Add a `jsonschema pkg` command instead
4846.PHONY : dist
47+ VERSION = $(shell $(JQ ) --raw-output '.["x-version"]' jsonschema.json)
4948dist :
5049 $(RMRF ) $@
5150 $(MKDIRP ) $@
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11PYTHON ?= python3
2- JQ ?= jq
32
43define MAKE_SCHEMA
54schemas/$1.json: templates/schemas/$1.jq $2.json
Original file line number Diff line number Diff line change 33 "description" : " A growing collection of hand-crafted high-quality schemas by Sourcemeta" ,
44 "email" : " hello@sourcemeta.com" ,
55 "github" : " sourcemeta/std" ,
6- "path" : " ./schemas"
6+ "path" : " ./schemas" ,
7+ "x-version" : " 0.2.0"
78}
You can’t perform that action at this time.
0 commit comments