adjust files to allow more auto-generation
This commit is contained in:
parent
53772cb717
commit
63e1353e5f
2
Makefile
2
Makefile
@ -26,7 +26,7 @@ overview.pdf:| rubbish/overview.pdf
|
||||
rubbish/overview.pdf: overview.tex
|
||||
|
||||
overview.tex: overview.md | rubbish/
|
||||
lowdown -stlatex overview.md > overview.tex
|
||||
lowdown -stlatex -m shiftheadinglevelby=1 overview.md > overview.tex
|
||||
|
||||
rubbish/overview.pdf: overview.tex
|
||||
pdflatex -output-directory rubbish/ overview.tex
|
||||
|
@ -10,7 +10,7 @@ Plan
|
||||
|
||||
Read the overview.
|
||||
|
||||
PDF Dependencies
|
||||
Dependencies
|
||||
============
|
||||
|
||||
- `texlive`
|
||||
|
@ -2,6 +2,13 @@
|
||||
|
||||
target="$1"
|
||||
|
||||
cd "$(dirname "$target")"
|
||||
|
||||
fileName="$(basename "$target")"
|
||||
sectionName="$(basename -s .md "$target" | tr '_' ' ')"
|
||||
|
||||
printf "\n\n# $sectionName\n"
|
||||
|
||||
while read -r line; do
|
||||
echo "$line" | grep -q '^.so ' && \
|
||||
file="$(echo "$line" | grep '^.so ' | cut -d' ' -f2 )" && \
|
||||
@ -10,4 +17,5 @@ echo "$line" | grep -q '^.so ' && \
|
||||
cat "$file" | graph-easy --boxart && \
|
||||
echo '```' || \
|
||||
echo "$line"
|
||||
done < "$target"
|
||||
done < "$fileName"
|
||||
|
Loading…
Reference in New Issue
Block a user