mirror of https://github.com/rust-lang/rfcs.git
20 lines
287 B
Bash
Executable File
20 lines
287 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ ! -d src ]; then
|
|
mkdir src
|
|
fi
|
|
|
|
echo "[Introduction](introduction.md)\n" > src/SUMMARY.md
|
|
|
|
for f in $(ls text/* | sort)
|
|
do
|
|
echo "- [$(basename $f ".md")]($(basename $f))" >> src/SUMMARY.md
|
|
cp $f src
|
|
done
|
|
|
|
cp README.md src/introduction.md
|
|
|
|
mdbook build
|