Skip to content

Commit

Permalink
Updated makerules 2025-01-03
Browse files Browse the repository at this point in the history
  • Loading branch information
digital-land-bot committed Jan 3, 2025
1 parent 20da64f commit eca7bea
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions makerules/makerules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ ifeq ($(MAKERULES_URL),)
MAKERULES_URL=$(SOURCE_URL)makerules/main/
endif

ifeq ($(DATASTORE_URL),)
DATASTORE_URL=https://files.planning.data.gov.uk/
endif

ifeq ($(CONFIG_URL),)
CONFIG_URL=$(DATASTORE_URL)config/
endif
Expand Down Expand Up @@ -144,10 +148,10 @@ endif
# local copy of organsiation datapackage
$(CACHE_DIR)organisation.csv:
@mkdir -p $(CACHE_DIR)
ifeq ($(COLLECTION_DATASET_BUCKET_NAME),)
curl -qfs "$(DATASTORE_URL)organisation-collection/dataset/organisation.csv" > $(CACHE_DIR)organisation.csv
else
ifneq ($(COLLECTION_DATASET_BUCKET_NAME),)
aws s3 cp s3://$(COLLECTION_DATASET_BUCKET_NAME)/organisation-collection/dataset/organisation.csv $(CACHE_DIR)organisation.csv
else
curl -qfs "$(DATASTORE_URL)organisation-collection/dataset/organisation.csv" > $(CACHE_DIR)organisation.csv
endif

init:: config
Expand Down

0 comments on commit eca7bea

Please sign in to comment.