-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.sh
executable file
·57 lines (45 loc) · 2.14 KB
/
build.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
#!/bin/bash
set -e
PATH=$PATH:/root/.local/bin
#read samples
mkdir samples
aws --quiet s3 cp s3://webix-packages/pivot/latest.txt ./
LATEST=`cat ./latest.txt`
aws --quiet s3 cp s3://webix-packages/pivot/pivot_${LATEST}_site.zip ./
unzip -q ./pivot_${LATEST}_site.zip 'samples/*' -d samples
mv samples/samples samples/61_pivot
aws --quiet s3 cp s3://webix-packages/kanban/latest.txt ./
LATEST=`cat ./latest.txt`
aws --quiet s3 cp s3://webix-packages/kanban/kanban_${LATEST}_site.zip ./
unzip -q ./kanban_${LATEST}_site.zip 'samples/*' -d samples
mv samples/samples samples/63_kanban
aws --quiet s3 cp s3://webix-packages/filemanager/latest.txt ./
LATEST=`cat ./latest.txt`
aws --quiet s3 cp s3://webix-packages/filemanager/filemanager_${LATEST}_site.zip ./
unzip -q ./filemanager_${LATEST}_site.zip 'samples/*' -d samples
mv samples/samples samples/64_file_manager
aws --quiet s3 cp s3://webix-packages/scheduler/latest.txt ./
LATEST=`cat ./latest.txt`
aws --quiet s3 cp s3://webix-packages/scheduler/scheduler_${LATEST}_site.zip ./
unzip -q ./scheduler_${LATEST}_site.zip 'samples/*' -d samples
mv samples/samples samples/62_scheduler
aws --quiet s3 cp s3://webix-packages/spreadsheet/latest.txt ./
LATEST=`cat ./latest.txt`
aws --quiet s3 cp s3://webix-packages/spreadsheet/spreadsheet_${LATEST}_site.zip ./
unzip -q ./spreadsheet_${LATEST}_site.zip 'samples/*' -d samples
mv samples/samples samples/65_spreadsheet
aws --quiet s3 cp s3://webix-packages/core/latest.txt ./
LATEST=`cat ./latest.txt`
aws --quiet s3 cp s3://webix-packages/core/webix_${LATEST}_site.zip ./
unzip -q ./webix_${LATEST}_site.zip 'samples/*'
echo '{"samples":"./samples/"}' > madoka.local.json
#generate static docs
php index.php reindex
php -d memory_limit=512M index.php export_html
cd export && zip -qr ../webix.docs.html.zip ./ && cd ..
php -d memory_limit=512M index.php sphinx
cd search && zip -qr ../webix.docs.xml.zip ./ && cd ..
#store generated docs
aws --quiet s3 cp ./webix.docs.html.zip s3://webix-packages/docs/docs_${LATEST}.html.zip
aws --quiet s3 cp ./webix.docs.xml.zip s3://webix-packages/docs/docs_${LATEST}.xml.zip
aws --quiet s3 cp ./latest.txt s3://webix-packages/docs/latest.txt