-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_site.sh
executable file
·49 lines (38 loc) · 2.35 KB
/
build_site.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
#!/bin/bash
################################################################################
## Pre-script stuff... ##
################################################################################
## Clean up stuff...
rm -rf _output;
mkdir -p _output;
# ## Repos are needed for other stuff...
./scripts/download_repos.py;
./scripts/update_repos.py;
################################################################################
## Index page. ##
################################################################################
./scripts/build_index.py ./templates/index/index.template > _output/index.html;
################################################################################
## Docs ##
################################################################################
mkdir -p _output/docs;
./scripts/generate_docs.py > ./templates/docs/docs.list;
./scripts/build_index.py ./templates/docs/index.template > _output/docs/index.html;
################################################################################
## Floss ##
################################################################################
mkdir -p _output/floss;
./scripts/build_index.py ./templates/floss/index.template > _output/floss/index.html;
################################################################################
## Contact ##
################################################################################
mkdir -p _output/contact;
./scripts/build_index.py ./templates/contact/index.template > _output/contact/index.html;
################################################################################
## Images ##
################################################################################
cp -R img _output/img
################################################################################
## Copy ##
################################################################################
rsync -a ./_output/* /var/www/html/