-
Notifications
You must be signed in to change notification settings - Fork 1
/
subrepos.sh
executable file
·48 lines (40 loc) · 1.36 KB
/
subrepos.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
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
(
cd static || exit
rm -rf transform-playground
git clone https://github.com/syvb/transform-playground.git
rm -rf transform-playground/.git
(
rm -rf segme segmerepo
git clone https://github.com/syvb/segme.git segmerepo
cd segmerepo || exit
wasm-pack build -t no-modules
mv pkg public
)
mv segmerepo/public segme
rm -rf segmerepo
(
cd ext || exit
rm ./*.{jpg,svg}
wget https://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Circuit-playground-sideview.jpg/611px-Circuit-playground-sideview.jpg
wget https://upload.wikimedia.org/wikipedia/commons/4/4a/Circuit-playground-sideview.jpg
wget https://upload.wikimedia.org/wikipedia/commons/6/66/Adam7-mul.svg
wget https://upload.wikimedia.org/wikipedia/commons/b/bc/Tennis-points.svg
wget https://upload.wikimedia.org/wikipedia/commons/b/b2/HAP-ac2-Ports.jpg
wget https://upload.wikimedia.org/wikipedia/commons/d/d6/GTG-initial.png
wget https://upload.wikimedia.org/wikipedia/commons/a/ad/Atan2definition.svg
wget 'https://archive.org/download/rust-format/rust-format.pdf'
wget 'https://archive.org/download/rust-format/rust-format.fig'
)
rm -rf fmat
mkdir -p fmat
cd ../binformats || exit
BINFORMATS_URI_PREFIX="/fmat/" cargo run gen_png .
cp -r public/* ../static/fmat/
cd ../static || exit
rm fmat/*/index.html
(
cd pngcomp || exit
./gen.sh
)
)