aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-11 18:08:09 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-11 18:08:09 -0700
commit97a28d08193a4b681d3540fa8d9a496c3dc2c6b8 (patch)
tree01fcb01446ecac73567895eff6eca76f19c0fa23
parentc2f561e0eff3d7f22cc4d9e365021699a83d0ee1 (diff)
downloadchocula-97a28d08193a4b681d3540fa8d9a496c3dc2c6b8.tar.gz
chocula-97a28d08193a4b681d3540fa8d9a496c3dc2c6b8.zip
makefile: env syntax fix; upload-database command; ia collections
-rw-r--r--Makefile13
1 files changed, 6 insertions, 7 deletions
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