-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
rename.sh
executable file
·20 lines (20 loc) · 1023 Bytes
/
rename.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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/ && \
cp llvmbpf/README.md docs/bpftime/llvmbpf.md && \
echo "eunomia.dev" > docs/CNAME