You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
475 B
Bash
24 lines
475 B
Bash
7 years ago
|
#!/bin/bash
|
||
|
rm -r build
|
||
|
mkdir build
|
||
|
for D in *; do
|
||
|
if [ -d "${D}" ] && [ "${D}" != "build" ]
|
||
|
then
|
||
|
echo "Converting $D . . ."
|
||
|
pandoc ./$D/README.md ./$D/linux-*.md -o build/$D.tex --template default
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
cd ./build
|
||
|
for f in *.tex
|
||
|
do
|
||
|
pdflatex -interaction=nonstopmode $f
|
||
|
done
|
||
|
|
||
|
cd ../
|
||
|
pandoc README.md SUMMARY.md CONTRIBUTING.md CONTRIBUTORS.md \
|
||
|
-o ./build/Preface.tex --template default
|
||
|
|
||
|
pdfunite ./build/*.pdf LinuxKernelInsides.pdf
|
||
|
|