-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmake.sh
executable file
·41 lines (38 loc) · 1.02 KB
/
make.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
#!/bin/bash
case $1 in
clean)
if [[ -e build ]] ; then
echo "--- HTML: Cleaning ---"
rm -R build
fi
if [[ -e docs ]] ; then
echo "--- VERSIONING: Cleaning ---"
rm -R docs
fi
;;
html)
if [[ -e build ]] ; then
echo "--- HTML: Cleaning ---"
rm -R build
fi
echo "--- HTML: Building ---"
make html
;;
versions)
if [[ -e docs ]] ; then
echo "--- VERSIONING: Cleaning ---"
rm -R docs
fi
echo "--- VERSIONING: Building ---"
sphinx-versioning build -r master source/docs docs/_build/html
;;
help)
echo "Usage: $0 [clean|html|versions|all|help]"
;;
*|all)
echo "=== VERSIONS === ==========================================================="
$0 versions
echo
echo "=== HTML === ==============================================================="
$0 html
esac