Skip to content

Commit

Permalink
Remove section of Makefile: 'Migrate Configuration from PURL.org' and…
Browse files Browse the repository at this point in the history
… remove empty example_terms and entries arrays from dpo.yml and xao.yml
  • Loading branch information
Michael Cuffaro committed Feb 21, 2019
1 parent 9598d39 commit b5ea77f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
20 changes: 0 additions & 20 deletions Makefile
Expand Up @@ -144,26 +144,6 @@ safe-update:
tools/safe-update.py


### Migrate Configuration from PURL.org
#
# Given an ontology ID (usually lower-case),
# fetch and translate a PURL.org XML file
# into a YAML configuration file.
# This should be a one-time migration.
# Do not overwrite existing config file.
PURL_XML = https://purl.org/admin/purl/?target=&seealso=&maintainers=&explicitmaintainers=&tombstone=false&p_id=

.PHONY: migrate-%
migrate-%:
@test ! -s config/$*.yml \
|| (echo 'Refusing to overwrite config/$*.yml'; exit 1)
mkdir -p migrations
test -s migrations/$*.xml \
|| curl --fail -o migrations/$*.xml "$(PURL_XML)/obo/$**"
mkdir -p config
tools/migrate.py $* migrations/$*.xml config/$*.yml


### Code style and lint checks for python source files.
#
# Note that `|| true` is appended to force make to ignore the exit code in both cases
Expand Down
3 changes: 0 additions & 3 deletions config/dpo.yml
Expand Up @@ -10,6 +10,3 @@ products:
- dpo.owl: https://raw.githubusercontent.com/FlyBase/flybase-controlled-vocabulary/master/releases/dpo.owl

term_browser: ontobee
example_terms:

entries:
1 change: 0 additions & 1 deletion config/xao.yml
Expand Up @@ -8,7 +8,6 @@ products:
- xao.obo: http://ontologies.berkeleybop.org/xao.obo

term_browser: ontobee
example_terms:

entries:
- prefix: /tracker/
Expand Down

0 comments on commit b5ea77f

Please sign in to comment.