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:
commit
ab99ead4f2
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user