-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
rename.sh
executable file
·19 lines (19 loc) · 969 Bytes
/
rename.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
find ./tutorial -type f -name "*.md" ! -name "*_en*" -exec bash -c 'mv "$1" "${1%.md}.zh.md"' bash {} \; && \
find ./tutorial -type f -name "*_en*.md" -exec bash -c 'mv "$1" "${1//_en/}"' bash {} \; && \
mkdir -p docs/setup && \
cp -rf eunomia-bpf/README.md docs/eunomia-bpf/README.md && \
cp -rf eunomia-bpf/README_zh.md docs/eunomia-bpf/README.zh.md && \
mkdir -p docs/eunomia-bpf/setup/ && \
cp -rf eunomia-bpf/documents/src/setup/* docs/eunomia-bpf/setup/ && \
cp bpftime/README.md docs/bpftime/index.md && \
mkdir -p docs/GPTtrace && \
cp GPTtrace/README.md docs/GPTtrace/index.md && \
mkdir -p docs/GPTtrace/doc && \
cp -rf GPTtrace/doc/* docs/GPTtrace/doc/ && \
mkdir -p docs/tutorials && \
cp -rf tutorial/src/* docs/tutorials/ && \
cp tutorial/src/SUMMARY.zh.md docs/tutorials/index.zh.md && \
cp tutorial/src/SUMMARY.md docs/tutorials/index.md && \
mkdir -p docs/tutorials/imgs && \
cp tutorial/imgs/* docs/tutorials/imgs/ && \
echo "eunomia.dev" > docs/CNAME