From 97a28d08193a4b681d3540fa8d9a496c3dc2c6b8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 11 Jun 2020 18:08:09 -0700 Subject: makefile: env syntax fix; upload-database command; ia collections --- Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1c3cca9..4d11300 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ -TODAY := $(shell date --iso --utc) -SNAPSHOTITEM := $(shell grep ia_item sources.toml | cut -f2 -d'"') +TODAY ?= $(shell date --iso --utc) +SNAPSHOTITEM ?= $(shell grep ia_item sources.toml | cut -f2 -d'"') .PHONY: help help: ## Print info about all commands @@ -101,12 +101,11 @@ data/$(TODAY)/container_stats.json: data/container_export.json .PHONY: upload-sources upload-sources: update-sources ## Upload most recent update-able sources to a new IA item - ia upload --checksum chocula-sources-snapshot-$(TODAY) data/*.tsv data/*.json data/*.txt data/*.csv - -#.PHONY: upload-snapshot -#upload-snapshot: ## Upload an sqlite snapshot to archive.org -# ia upload --checksum --no-derive chocula-snapshot-$(TODAY) chocula.sqlite3 README.md extra/count_chocula.jpg + ia upload --checksum -m collection:ia_biblio_metadata chocula-sources-snapshot-$(TODAY) data/*.tsv data/*.json data/*.txt data/*.csv +.PHONY: upload-database +upload-database: ## Upload an sqlite snapshot to archive.org + ia upload --checksum --no-derive -m collection:ia_biblio_metadata chocula-database-snapshot-$(TODAY) chocula.sqlite sources.toml README.md extra/count_chocula.jpg .PHONY: database database: ## Build database from sources -- cgit v1.2.3