still wip
This commit is contained in:
parent
1ba0219bd7
commit
9735043c4b
5
Makefile
5
Makefile
|
@ -3,10 +3,10 @@ PINLIST_DIR := $(IPFS_ROOT)/pinlist
|
||||||
|
|
||||||
default: deploy
|
default: deploy
|
||||||
|
|
||||||
.PHONY: deploy
|
.PHONY: deploy clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f pinlist.txt
|
rm -f pinlist.txt pinlist.new
|
||||||
|
|
||||||
deploy: pinlist.txt
|
deploy: pinlist.txt
|
||||||
mkdir -p $(PINLIST_DIR)
|
mkdir -p $(PINLIST_DIR)
|
||||||
|
@ -17,7 +17,6 @@ deploy: pinlist.txt
|
||||||
awk -F' ' '{print $$2}' | \
|
awk -F' ' '{print $$2}' | \
|
||||||
ipfs name publish
|
ipfs name publish
|
||||||
|
|
||||||
|
|
||||||
pinlist.txt: pins/*.json
|
pinlist.txt: pins/*.json
|
||||||
jq -r .pins[] $^ > pinlist.new && mv pinlist.new $@.tmp
|
jq -r .pins[] $^ > pinlist.new && mv pinlist.new $@.tmp
|
||||||
echo "# timestamp=$$(date -u +%s)" >> $@.tmp
|
echo "# timestamp=$$(date -u +%s)" >> $@.tmp
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
SNEAKID="QmaN64WRYdHBojWFQRLxkdjtX6TEnqnCq8uAugpyJJpCVp"
|
||||||
|
RESOURCE="$(ipfs resolve /ipns/$SNEAKID/pinlist/pinlist.txt)"
|
||||||
|
|
||||||
|
# first add normal ipfs ones
|
||||||
|
ipfs cat $RESOURCE |
|
||||||
|
egrep '^\/ip[fn]s\/[a-zA-Z0-9\-\_\/\.]{5,70}$' |
|
||||||
|
egrep '^\/ipfs\/' |
|
||||||
|
ipfs pin add
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"contact": {
|
||||||
|
"email": "sneak@sneak.berlin",
|
||||||
|
"name": "Jeffrey Paul"
|
||||||
|
},
|
||||||
|
"description": "this pinlist and pinning script",
|
||||||
|
"pins": [
|
||||||
|
"/ipns/QmaN64WRYdHBojWFQRLxkdjtX6TEnqnCq8uAugpyJJpCVp/pinlist"
|
||||||
|
],
|
||||||
|
"url": "https://sneak.berlin"
|
||||||
|
}
|
Loading…
Reference in New Issue