-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from progval/properties-v3
Add v3 terms, and switch to native Hugo templating
- Loading branch information
Showing
8 changed files
with
183 additions
and
909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
all: data/crosswalk.json | ||
all: data/crosswalk.json data/properties_description.json | ||
|
||
# Download the latest crosswalk | ||
data/crosswalk.csv: | ||
wget https://github.com/codemeta/codemeta/raw/master/crosswalk.csv -O data/crosswalk.csv | ||
|
||
# Convert crosswalk.csv to crosswalk.json so Hugo can parse it | ||
data/crosswalk.json: data/crosswalk.csv | ||
data/crosswalk.json: scripts/crosswalk_to_json.py data/crosswalk.csv | ||
python3 scripts/crosswalk_to_json.py | ||
|
||
# properties_description.csv file was only split off from crosswalks.csv starting with | ||
# v2.1, so we can't download v2.0 itself. There were no major changes between the two, | ||
# anyway. | ||
data/properties_description/v2.0.csv: | ||
wget https://github.com/codemeta/codemeta/raw/2.1/properties_description.csv -O $@ | ||
|
||
# Download properties descriptions for other versions | ||
data/properties_description/v%.csv: | ||
wget https://github.com/codemeta/codemeta/raw/$*/properties_description.csv -O $@ | ||
|
||
data/properties_description.json: scripts/properties_to_json.py data/properties_description/v2.0.csv data/properties_description/v3.0.csv | ||
python3 scripts/properties_to_json.py |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.