mirror of
https://github.com/0xAX/linux-insides.git
synced 2025-01-03 04:10:56 +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
|
#!/bin/bash
|
||||||
rm -r build
|
rm -r build
|
||||||
mkdir build
|
mkdir build
|
||||||
for D in $(ls ../); do
|
for D in ../*; do
|
||||||
if [ -d "../${D}" ]
|
if [ -d "$D" ]
|
||||||
then
|
then
|
||||||
echo "Converting $D . . ."
|
name=$(basename "$D")
|
||||||
pandoc ../$D/README.md ../$D/linux-*.md -o build/$D.tex --template default
|
echo "Converting $name . . ."
|
||||||
|
pandoc "$D"/README.md "$D"/linux-*.md \
|
||||||
|
-o build/"$name".tex --template default
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
cd ./build
|
cd ./build || exit 1
|
||||||
for f in *.tex
|
for f in *.tex
|
||||||
do
|
do
|
||||||
pdflatex -interaction=nonstopmode $f
|
pdflatex -interaction=nonstopmode "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
cd ../
|
cd ../ || exit 1
|
||||||
pandoc ../README.md ../SUMMARY.md ../CONTRIBUTING.md ../contributors.md \
|
pandoc ../README.md ../SUMMARY.md ../CONTRIBUTING.md ../contributors.md \
|
||||||
-o ./build/Preface.tex --template default
|
-o ./build/Preface.tex --template default
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user