forked from actiontech/dble-docs-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildbook.sh
42 lines (38 loc) · 1.64 KB
/
buildbook.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
#!/bin/bash
mkdir tmp
mkdir tmp/pic
#readme
cp README.md tmp/0.0.README.md
# charter0
cat 0.overview/*.md > tmp/0.overview.md
cp 0.overview/pic/* tmp/pic/
# charter1
cat 1.config_file/1.6_cache/*.md > 1.config_file/1.6_cache.md.detail.md
cat 1.config_file/1.7_global_sequence/*.md > 1.config_file/1.7_global_sequence.md.detail.md
cat 1.config_file/*.md > tmp/1.config_file.md
# charter2
cat 2.Function/2.1_manager_cmd/*.md > 2.Function/2.01_manager_cmd.md.detail.md
cat 2.Function/2.2_global_sequence/*.md > 2.Function/2.02_global_sequence.md.detail.md
cat 2.Function/2.5_distribute_transaction/*.md > 2.Function/2.05_distribute_transaction.md.detail.md
cat 2.Function/2.10_table_meta/*.md > 2.Function/2.10_table_meta.md.detail.md
cat 2.Function/2.11_statistics_manager/*.md > 2.Function/2.11_statistics_manager.md.detail.md
cat 2.Function/*.md > tmp/2.Function.md
cp 2.Function/pic/* tmp/pic/
cp 2.Function/2.5_distribute_transaction/pic/* tmp/pic/
cp 2.Function/2.10_table_meta/pic/* tmp/pic/
# charter3
cat 3.SQL_Syntax/3.1_DDL/*.md > 3.SQL_Syntax/3.1_DDL.md.detail.md
cat 3.SQL_Syntax/3.2_DML/*.md > 3.SQL_Syntax/3.2_DML.md.detail.md
cat 3.SQL_Syntax/3.4_Transactional_and_Locking_Statements/*.md > 3.SQL_Syntax/3.4_Transactional_and_Locking_Statements.md.detail.md
cat 3.SQL_Syntax/3.5_DAL/*.md > 3.SQL_Syntax/3.5_DAL.md.detail.md
cat 3.SQL_Syntax/*.md > tmp/3.SQL_Syntax.md
# charter4
cat 4.Protocol/*.md > tmp/4.Protocol.md
# charter5
cat 5.Limit/*.md > tmp/5.Limit.md
# charter6
cat 6.Differernce_from_MySQL_Server/*.md > tmp/6.Differernce_from_MySQL_Server.md
# charter7
cat 7.Developer_Notice/*.md > tmp/7.Developer_Notice.md
# all
cat tmp/*.md > tmp/dble-doc-cn.md