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

Merge pull request #581 from MintCN/master

move latex.sh to Scripts folder
This commit is contained in:
0xAX 2018-03-21 19:20:09 +01:00 committed by GitHub
commit 26622e3604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View File

@ -4,6 +4,8 @@
`get_all_links.py` : justify one link is live or dead with network connection `get_all_links.py` : justify one link is live or dead with network connection
`latex.sh` : a script for converting Markdown files in each of the subdirectories into a unified PDF typeset in LaTeX
## Usage ## Usage
`get_all_links.py` : `get_all_links.py` :
@ -11,3 +13,9 @@
``` ```
./get_all_links.py ../ ./get_all_links.py ../
``` ```
`latex.sh` :
```
./latex.sh
```

View File

@ -5,11 +5,11 @@
#!/bin/bash #!/bin/bash
rm -r build rm -r build
mkdir build mkdir build
for D in *; do for D in $(ls ../); do
if [ -d "${D}" ] && [ "${D}" != "build" ] if [ -d "../${D}" ]
then then
echo "Converting $D . . ." echo "Converting $D . . ."
pandoc ./$D/README.md ./$D/linux-*.md -o build/$D.tex --template default pandoc ../$D/README.md ../$D/linux-*.md -o build/$D.tex --template default
fi fi
done done
@ -20,8 +20,7 @@ do
done done
cd ../ cd ../
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
pdfunite ./build/*.pdf LinuxKernelInsides.pdf pdfunite ./build/*.pdf LinuxKernelInsides.pdf