-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
35 lines (28 loc) · 931 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# note these are commited Qms so they are immutable ones i.e. not current one
qmgit=QmZKfXZc3rwVrAnqybccQtqpY8gjzfUa7puWiJZYRaxpvv
qmrepo=QmRScW4ZhiMPYJsLZevNHHC7HmdY3fZFmMPoV1oZRxHz2V
qm=Qmc223eTNPHJa7TfeY7R7ArrBFsbnqqZLdehRbL2SXhH5D
pgw_url=https://ipfs.blockring™.ml
tic=$(date +%s)
#curl -m 3 -sL https://gateway.ipfs.io/api/v0/ls?arg=$qmrepo &
curl -sIL $pgw_url/ipfs/$qmgit/info/refs &
git cat-file -p master^{tree}
git rev-parse HEAD:
git pull --no-rebase https://ipfs.blockring™.ml/ipfs/$qmrepo/default.site.git
git cat-file -p master^{tree}
git rev-parse HEAD:
git log -1
gitid=$(git rev-parse --short HEAD)
# note: tic must be last (no ,)
sed \
-e "s/gitid: .*/gitid: '$gitid',/" \
-e "s/qmgit: .*/qmgit: '$qmrepo',/" \
-e "s/qmrepo: .*/qmrepo: '$qmrepo',/" \
-e "s/qm: .*/qm: '$qm',/" \
-e "s/tic: [0-9]*/tic: $tic/" \
mutables.txt > mutables.js
git status
echo done.
exit $?
true;