Skip to content

Commit

Permalink
Change setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Jun 13, 2024
1 parent 6b70a78 commit b3092f8
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions setup-dist-dir.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# step 1 create basic dirs
mkdir -p ./dist/en ./dist/zh-HK ./dist/zh-CN
# mv all dist to temp dir for backup
mv ./dist/zh-CN /tmp/ && mv ./dist/zh-HK /tmp/ && mv ./dist/en /tmp/

# step 2 mv default en assets to dist/en
mv ./dist/learn.html ./dist/en/
mv ./dist/sitemap.xml ./dist/en/
mv ./dist/404.html ./dist/en/
mv ./dist/.nojekyll ./dist/en/
# cp all dist file to dist/en
mkdir -p ./dist/en
mv ./dist/* ./dist/en/
mv /tmp/zh-CN ./dist/ && mv /tmp/zh-HK ./dist/ && mv /tmp/en/* ./dist/en/

# step 3 remove duplicated files
rm -rf ./dist/zh-CN/assets ./dist/zh-HK/assets
cp -rf ./dist/zh-CN/zh-CN/* ./dist/zh-CN/ && rm -rf ./dist/zh-CN/zh-CN
cp -rf ./dist/zh-HK/zh-HK/* ./dist/zh-HK/ && rm -rf ./dist/zh-HK/zh-HK

0 comments on commit b3092f8

Please sign in to comment.