|
|
@ -20,15 +20,16 @@ paper-height = 12
|
|
|
|
margin-top = 1
|
|
|
|
margin-top = 1
|
|
|
|
margin-bottom = 1
|
|
|
|
margin-bottom = 1
|
|
|
|
margin-left = 1
|
|
|
|
margin-left = 1
|
|
|
|
|
|
|
|
[output.pdf-outline]
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "===>>> Start build pdf..."
|
|
|
|
echo "===>>> Start build pdf..."
|
|
|
|
mdbook build
|
|
|
|
mdbook build
|
|
|
|
today=$(date +%Y%m%d)
|
|
|
|
today=$(date +%Y%m%d)
|
|
|
|
echo "===>>> PDF rename to rust-curse-$today.pdf"
|
|
|
|
echo "===>>> PDF rename to rust-curse-$today.pdf"
|
|
|
|
mv book/pdf/output.pdf rust-curse-"$today".pdf
|
|
|
|
mv book/pdf/output.pdf rust-course.pdf
|
|
|
|
if [ -f book.toml.bak ]; then
|
|
|
|
if [ -f book.toml.bak ]; then
|
|
|
|
echo "===>>> Reverse book.toml file..."
|
|
|
|
echo "===>>> Reverse book.toml file..."
|
|
|
|
mv book.toml.bak book.toml
|
|
|
|
mv book.toml.bak book.toml
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|