Skip to content

Commit

Permalink
Updated makerules 2024-11-05
Browse files Browse the repository at this point in the history
  • Loading branch information
digital-land-bot committed Nov 5, 2024
1 parent 60b41aa commit 966d6a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions makerules/makerules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ LANG := C.UTF-8
LC_COLLATE := C.UTF-8

# current git branch
ifeq ($(BRANCH),)
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
endif

UNAME := $(shell uname)

Expand Down
7 changes: 6 additions & 1 deletion makerules/pipeline.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ ifeq ($(ISSUE_DIR),)
ISSUE_DIR=issue/
endif

ifeq ($(OUTPUT_LOG_DIR),)
OUTPUT_LOG_DIR=log/
endif

ifeq ($(PERFORMANCE_DIR),)
PERFORMANCE_DIR=performance/
endif
Expand Down Expand Up @@ -107,7 +111,7 @@ PIPELINE_CONFIG_FILES=\
endif

define run-pipeline
mkdir -p $(@D) $(ISSUE_DIR)$(notdir $(@D)) $(OPERATIONAL_ISSUE_DIR) $(COLUMN_FIELD_DIR)$(notdir $(@D)) $(DATASET_RESOURCE_DIR)$(notdir $(@D)) $(CONVERTED_RESOURCE_DIR)$(notdir $(@D))
mkdir -p $(@D) $(ISSUE_DIR)$(notdir $(@D)) $(OPERATIONAL_ISSUE_DIR) $(OUTPUT_LOG_DIR) $(COLUMN_FIELD_DIR)$(notdir $(@D)) $(DATASET_RESOURCE_DIR)$(notdir $(@D)) $(CONVERTED_RESOURCE_DIR)$(notdir $(@D))
digital-land ${DIGITAL_LAND_OPTS} --dataset $(notdir $(@D)) --pipeline-dir $(PIPELINE_DIR) $(DIGITAL_LAND_FLAGS) pipeline $(1) --issue-dir $(ISSUE_DIR)$(notdir $(@D)) --column-field-dir $(COLUMN_FIELD_DIR)$(notdir $(@D)) --dataset-resource-dir $(DATASET_RESOURCE_DIR)$(notdir $(@D)) --converted-resource-dir $(CONVERTED_RESOURCE_DIR)$(notdir $(@D)) --config-path $(CACHE_DIR)config.sqlite3 --organisation-path $(CACHE_DIR)organisation.csv $(PIPELINE_FLAGS) $< $@
endef

Expand Down Expand Up @@ -188,6 +192,7 @@ save-transformed::
aws s3 sync $(COLUMN_FIELD_DIR) s3://$(COLLECTION_DATASET_BUCKET_NAME)/$(REPOSITORY)/$(COLUMN_FIELD_DIR) --no-progress
aws s3 sync $(DATASET_RESOURCE_DIR) s3://$(COLLECTION_DATASET_BUCKET_NAME)/$(REPOSITORY)/$(DATASET_RESOURCE_DIR) --no-progress
aws s3 sync $(CONVERTED_RESOURCE_DIR) s3://$(COLLECTION_DATASET_BUCKET_NAME)/$(REPOSITORY)/$(CONVERTED_RESOURCE_DIR) --no-progress
aws s3 sync $(OUTPUT_LOG_DIR) s3://$(COLLECTION_DATASET_BUCKET_NAME)/$(OUTPUT_LOG_DIR) --no-progress

save-dataset::
@mkdir -p $(DATASET_DIR)
Expand Down

0 comments on commit 966d6a4

Please sign in to comment.