Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
Latest commit
executable file
·38 lines (30 loc) · 1.11 KB
/
Copy pathbuild
File metadata and controls
executable file
·38 lines (30 loc) · 1.11 KB
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
#!/bin/sh
cd"$(dirname "$0")"
if!test -d ./frontend -a -d ./backend
then
echo>&2"script needs to exist in the 'py.projects.pg.org' project directory"
exit 1
fi
mkdir -p ./root/backend ||exit
# frontend
cp -r ./frontend/static/* root/ ||exit
xsltproc frontend/src/index.xsl frontend/src/index.xml >root/index.html ||exit
cp -r frontend/src/lib root/ ||exit
cp frontend/src/ticker.xsl root/ ||exit
cp frontend/src/*.css root/ ||exit
cp frontend/src/*.png root/ ||exit
cp frontend/src/license.txt root/ ||exit
rm root/sphinx-doc-icon.png ||exit
cp root/py.png root/favicon.ico ||exit
# backend
cp -r backend/static/* root/backend ||exit
xsltproc backend/src/index.xsl backend/src/index.xml >root/backend/index.html ||exit
cp -r backend/src/lib root/backend/ ||exit
cp backend/src/*.css root/backend/ ||exit
cp backend/src/*.png root/backend/ ||exit
cp backend/src/license.txt root/backend/ ||exit
rm root/backend/sphinx-doc-icon.png ||exit
cp root/backend/py.png root/backend/favicon.ico ||exit
python3 ./backend/copy_documentation.py ||exit
mv backend/docs/* root/backend/docs/ ||exit
rmdir backend/docs