1
1
#! /bin/bash
2
2
3
- set -xe
3
+ set -xe -o pipefail -o nounset
4
4
5
5
project_root=$( pwd)
6
6
@@ -31,14 +31,14 @@ cartridge_pot_src="${cartridge_root}/build.luarocks/build.rst/locale"
31
31
cartridge_pot_dest=" ${project_root} /locale/book/cartridge"
32
32
cd " ${cartridge_pot_src} " || exit
33
33
mkdir -p " ${cartridge_pot_dest} "
34
- find . -name ' *.pot' -exec cp -r --parents {} " ${cartridge_pot_dest} " \;
34
+ find . -name ' *.pot' -exec cp -rv --parents {} " ${cartridge_pot_dest} " \;
35
35
36
36
# Copy translations
37
37
cartridge_po_src=" ${cartridge_root} /build.luarocks/build.rst/locale/ru/LC_MESSAGES"
38
38
cartridge_po_dest=" ${po_dest} /book/cartridge"
39
39
cd " ${cartridge_po_src} " || exit
40
40
mkdir -p " ${cartridge_po_dest} "
41
- find . -name ' *.po' -exec cp -r --parents {} " ${cartridge_po_dest} " \;
41
+ find . -name ' *.po' -exec cp -rv --parents {} " ${cartridge_po_dest} " \;
42
42
43
43
44
44
# Cartridge CLI
@@ -67,8 +67,8 @@ monitoring_grafana_root="${project_root}/modules/grafana-dashboard/doc/monitorin
67
67
68
68
# Copy monitoring docs to the right destination
69
69
mkdir -p " ${monitoring_dest} "
70
- yes | cp -rf " ${monitoring_root} " " ${monitoring_dest} /"
71
- yes | cp -rf " ${monitoring_grafana_root} " " ${monitoring_dest} /"
70
+ cp -rfv " ${monitoring_root} " " ${monitoring_dest} /"
71
+ cp -rfv " ${monitoring_grafana_root} " " ${monitoring_dest} /"
72
72
73
73
74
74
# Luatest
@@ -81,10 +81,10 @@ ldoc --ext=rst --dir=rst --toctree="API" .
81
81
82
82
# Copy Luatest docs to the right place
83
83
cd " ${luatest_dest} "
84
- yes | cp -fa " ${luatest_root} /rst/." " ${luatest_dest} "
85
- yes | cp " ${luatest_root} /README.rst" " ${luatest_dest} "
84
+ cp -fa " ${luatest_root} /rst/." " ${luatest_dest} "
85
+ cp " ${luatest_root} /README.rst" " ${luatest_dest} "
86
86
mkdir -p " ${luatest_dest} /_includes/"
87
- yes | mv -f " ${luatest_dest} /index.rst" " ${luatest_dest} /_includes/"
87
+ mv -fv " ${luatest_dest} /index.rst" " ${luatest_dest} /_includes/"
88
88
89
89
90
90
# Kubernetes operator
@@ -93,7 +93,7 @@ cartridge_kubernetes_dest="${cartridge_rst_dest}/"
93
93
94
94
# Copy Kubernetes operator docs to the right place
95
95
mkdir -p " ${cartridge_kubernetes_dest} "
96
- yes | cp -rf " ${cartridge_kubernetes_root} " " ${cartridge_kubernetes_dest} "
96
+ cp -rfv " ${cartridge_kubernetes_root} " " ${cartridge_kubernetes_dest} "
97
97
98
98
99
99
# Tarantool C++ connector
@@ -104,6 +104,6 @@ tntcxx_api_dest="${project_root}/doc/book/connectors"
104
104
# Copy Tarantool C++ connector docs to the right places
105
105
mkdir -p " ${tntcxx_api_dest} /cxx/"
106
106
mkdir -p " ${tntcxx_gs_dest} /_includes"
107
- yes | cp -rf " ${tntcxx_root} /doc/tntcxx_getting_started.rst" " ${tntcxx_gs_dest} /getting_started_cxx.rst"
108
- yes | cp -rf " ${tntcxx_root} /examples/" " ${tntcxx_gs_dest} /_includes/examples/"
109
- yes | cp -rf " ${tntcxx_root} /doc/tntcxx_api.rst" " ${tntcxx_api_dest} /cxx/"
107
+ cp -rfv " ${tntcxx_root} /doc/tntcxx_getting_started.rst" " ${tntcxx_gs_dest} /getting_started_cxx.rst"
108
+ cp -rfv " ${tntcxx_root} /examples/" " ${tntcxx_gs_dest} /_includes/examples/"
109
+ cp -rfv " ${tntcxx_root} /doc/tntcxx_api.rst" " ${tntcxx_api_dest} /cxx/"
0 commit comments