latest
This commit is contained in:
15
Makefile
15
Makefile
@@ -10,7 +10,8 @@ clean:
|
||||
|
||||
deploy: pinlist.txt
|
||||
mkdir -p $(PINLIST_DIR)
|
||||
rsync -avP ./pinlist.txt $(PINLIST_DIR)/pinlist.txt
|
||||
cat ./pinlist.txt > $(PINLIST_DIR)/pinlist.txt
|
||||
cat ./bin/pin.sh > $(PINLIST_DIR)/pin.sh
|
||||
ipfs add -r $(IPFS_ROOT) | \
|
||||
tail -1 | \
|
||||
awk -F' ' '{print $$2}' | \
|
||||
@@ -18,5 +19,13 @@ deploy: pinlist.txt
|
||||
|
||||
|
||||
pinlist.txt: pins/*.json
|
||||
jq -r .pins[] $^ > pinlist.new && mv pinlist.new $@
|
||||
echo "# $$(date -u +%s)" >> $@
|
||||
jq -r .pins[] $^ > pinlist.new && mv pinlist.new $@.tmp
|
||||
echo "# timestamp=$$(date -u +%s)" >> $@.tmp
|
||||
cat $@.tmp | sort | uniq > $@
|
||||
rm $@.tmp
|
||||
|
||||
tidy:
|
||||
for X in pins/*.json ; do \
|
||||
echo $$X ; \
|
||||
jq -S --indent 4 . $$X > $$X.new && mv $$X.new $$X ; \
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user