-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GenDocs.command
executable file
·61 lines (42 loc) · 1000 Bytes
/
GenDocs.command
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
58
59
60
61
BASEDIR=$(dirname "$0")
echo 'Change to script directory'
echo $BASEDIR
cd $BASEDIR
echo 'Change Server build number'
sed -i -e 's/build = ".*"/build = "'$(date "+%Y%m%d")'"/g' Server/BaaS-Server.php
rm Server/BaaS-Server.php-e
echo 'Change Swift build number'
sed -i -e 's/build = ".*"/build = "'$(date "+%Y%m%d")'"/g' Framework/BaaS/BaaS/BaaS-Main.swift
rm Framework/BaaS/BaaS/BaaS-Main.swift-e
# echo 'Sleeping.'
# sleep 1
echo 'Move to "Framework"'
cd Framework
echo 'Execute "Jazzy"'
jazzy
echo 'Move to the base directory'
cd $BASEDIR
echo 'Move to "Server"'
cd Server
echo 'Execute "phpDocumentor"'
phpDocumentor
echo 'Remove build files'
rm -rf build
echo 'Move to the base directory'
cd $BASEDIR
echo 'Remove build files'
rm -rf build
echo 'Bye!'
cd $BASEDIR
git add -A .
git commit -m 'Updated documentation'
git push
cd ..
cd BackendasaService.github.io
cd APIDocumentation
php index.php
cd ..
git add -A .
git commit -m 'Updated documentation'
git push
exit &>/dev/null