Skip to content

Commit

Permalink
add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
huhn511 committed Mar 4, 2021
1 parent f892485 commit 2440ee5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
book
book
dist
18 changes: 18 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
# This is a comment!
rm -f ./dist
mkdir ./dist
echo "Build de..."
mdbook build ./src/de
mkdir ./dist/de
cp -r ./src/de/book/. ./dist/de
echo "... de build finshed."
echo "Build en..."
mdbook build ./src/en
mkdir ./dist/en
cp -r ./src/en/book/. ./dist/en
echo "... en build finshed."
echo "Build index..."
mdbook build
cp -r ./book/. ./dist
echo "... index build finshed."

0 comments on commit 2440ee5

Please sign in to comment.