1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 06:38:07 +00:00

Merge pull request #736 from sjp38/fix_shellcheck_warnings

Scripts/latex: Fix shellcheck warnings
This commit is contained in:
Sebastian Fricke 2020-10-04 18:30:01 +02:00 committed by GitHub
commit ab99ead4f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,21 +5,23 @@
#!/bin/bash
rm -r build
mkdir build
for D in $(ls ../); do
if [ -d "../${D}" ]
for D in ../*; do
if [ -d "$D" ]
then
echo "Converting $D . . ."
pandoc ../$D/README.md ../$D/linux-*.md -o build/$D.tex --template default
name=$(basename "$D")
echo "Converting $name . . ."
pandoc "$D"/README.md "$D"/linux-*.md \
-o build/"$name".tex --template default
fi
done
cd ./build
cd ./build || exit 1
for f in *.tex
do
pdflatex -interaction=nonstopmode $f
pdflatex -interaction=nonstopmode "$f"
done
cd ../
cd ../ || exit 1
pandoc ../README.md ../SUMMARY.md ../CONTRIBUTING.md ../contributors.md \
-o ./build/Preface.tex --template default