latest
This commit is contained in:
22
Makefile
Normal file
22
Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
IPFS_ROOT := $(HOME)/Documents/sneak/my-ipfs-root
|
||||
PINLIST_DIR := $(IPFS_ROOT)/pinlist
|
||||
|
||||
default: deploy
|
||||
|
||||
.PHONY: deploy
|
||||
|
||||
clean:
|
||||
rm -f pinlist.txt
|
||||
|
||||
deploy: pinlist.txt
|
||||
mkdir -p $(PINLIST_DIR)
|
||||
rsync -avP ./pinlist.txt $(PINLIST_DIR)/pinlist.txt
|
||||
ipfs add -r $(IPFS_ROOT) | \
|
||||
tail -1 | \
|
||||
awk -F' ' '{print $$2}' | \
|
||||
ipfs name publish
|
||||
|
||||
|
||||
pinlist.txt: pins/*.json
|
||||
jq -r .pins[] $^ > pinlist.new && mv pinlist.new $@
|
||||
echo "# $$(date -u +%s)" >> $@
|
||||
Reference in New Issue
Block a user