-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sh
executable file
·29 lines (23 loc) · 969 Bytes
/
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
#!/bin/bash
if [ -z "${VERSION}" ]; then
echo "Specify VERSION variable."
exit 1
fi
wget https://github.com/PerfCake/PerfCake/archive/devel.zip
if [[ -f devel.zip ]];
then
unzip -o devel.zip -d xsd.install
cp xsd.install/PerfCake-devel/perfcake/src/main/resources/schemas/* schema/
rm -rf xsd.install
rm devel.zip
fi
cp _config/site.yml _config/site.yml.orig
sed -i "s/^version:.*$/version: ${VERSION}/" _config/site.yml
awestruct -P production
mv _config/site.yml.orig _config/site.yml
wget https://github.com/PerfCake/PerfCake/releases/download/v${VERSION}/perfcake-v${VERSION}-javadoc.jar && unzip -o -d javadoc perfcake-v${VERSION}-javadoc.jar && rm perfcake-v${VERSION}-javadoc.jar
mv -f javadoc _site/
wget https://github.com/PerfCake/Docs/releases/download/v${VERSION}/perfcake-docs-html.zip && unzip -o -d docs perfcake-docs-html.zip && rm perfcake-docs-html.zip
mv -f docs _site/
rm -rf schema/*.xsd
rm -rf _site/*.sh