diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-06-11 18:08:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-11 18:08:09 -0700 |
commit | 97a28d08193a4b681d3540fa8d9a496c3dc2c6b8 (patch) | |
tree | 01fcb01446ecac73567895eff6eca76f19c0fa23 | |
parent | c2f561e0eff3d7f22cc4d9e365021699a83d0ee1 (diff) | |
download | chocula-97a28d08193a4b681d3540fa8d9a496c3dc2c6b8.tar.gz chocula-97a28d08193a4b681d3540fa8d9a496c3dc2c6b8.zip |
makefile: env syntax fix; upload-database command; ia collections
-rw-r--r-- | Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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 |