-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
90 lines (74 loc) · 2.43 KB
/
run.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
echo ---------------------------------------------
echo - Starting Amethyst git clone...
echo ---------------------------------------------
git clone https://github.com/amethyst/amethyst.git
cd amethyst
echo ---------------------------------------------
echo - Moving to latest stable release
echo ---------------------------------------------
git fetch --tags
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag
echo ---------------------------------------------
echo - Preping Rust...
echo ---------------------------------------------
sudo apt install libasound2-dev libsdl2-dev
rustup default stable
cargo install mdbook
echo ---------------------------------------------
echo - Generating Stable Book...
echo ---------------------------------------------
mdbook build book
echo ---------------------------------------------
echo - Generating Stable API...
echo ---------------------------------------------
cargo doc --release --features="vulkan" --no-deps --workspace
echo ---------------------------------------------
echo - Moving stable API and Book to public...
echo ---------------------------------------------
pwd
# Makes docs.amethyst.rs/book/latest
echo copying book...
mkdir -p ../public/book/stable
cp -r book/book/* ../public/book/stable/
# Makes docs.amethyst.rs/api/latest
echo copying api...
mkdir -p ../public/api/stable
cp -r target/doc/* ../public/api/stable/
echo Skipping latest API and Doc...
# echo ---------------------------------------------
# echo - Moving to latest main
# echo ---------------------------------------------
#
# git checkout main
#
# echo ---------------------------------------------
# echo - Generating Latest Book...
# echo ---------------------------------------------
#
# mdbook build book
#
# echo ---------------------------------------------
# echo - Generating Latest API...
# echo ---------------------------------------------
#
# cargo doc --release --features="vulkan" --no-deps --workspace
#
# echo ---------------------------------------------
# echo - Moving Latest API and Book to public...
# echo ---------------------------------------------
#
# pwd
#
# # Makes docs.amethyst.rs/book/latest
# echo copying book...
# mkdir -p ../public/book/latest
# cp -r book/book/* ../public/book/latest/
#
# # Makes docs.amethyst.rs/api/latest
# echo copying api...
# mkdir -p ../public/api/latest
# cp -r target/doc/* ../public/api/latest/
#
echo Done...