forked from sophgo/tpu-mlir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release_doc.sh
executable file
·41 lines (34 loc) · 1.46 KB
/
release_doc.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
#!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# generate tpu-mlir_quick_start
# ------------------------------------------------------------------------------
pushd ${DIR}/doc/quick_start
make clean
make pdf
make html
popd
# generate tpu-mlir_technical_manual
# ------------------------------------------------------------------------------
pushd ${DIR}/doc/developer_manual
make clean
make pdf
make html
popd
# ------------------------------------------------------------------------------
mkdir -p ${DIR}/build/doc/quick_start_zh
cp -rf ${DIR}/doc/quick_start/build_zh/tpu-mlir_quick_start_zh.pdf \
${DIR}/build/doc/quick_start_zh/
cp -rf ${DIR}/doc/quick_start/build_zh/html ${DIR}/build/doc/quick_start_zh
mkdir -p ${DIR}/build/doc/quick_start_en
cp -rf ${DIR}/doc/quick_start/build_en/tpu-mlir_quick_start_en.pdf \
${DIR}/build/doc/quick_start_en/
cp -rf ${DIR}/doc/quick_start/build_en/html ${DIR}/build/doc/quick_start_en
mkdir -p ${DIR}/build/doc/developer_manual_zh
cp -f ${DIR}/doc/developer_manual/build_zh/tpu-mlir_technical_manual_zh.pdf \
${DIR}/build/doc/developer_manual_zh/
cp -rf ${DIR}/doc/developer_manual/build_zh/html ${DIR}/build/doc/developer_manual_zh/
mkdir -p ${DIR}/build/doc/developer_manual_en
cp -f ${DIR}/doc/developer_manual/build_en/tpu-mlir_technical_manual_en.pdf \
${DIR}/build/doc/developer_manual_en/
cp -rf ${DIR}/doc/developer_manual/build_en/html ${DIR}/build/doc/developer_manual_en/