mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
51 lines
1.3 KiB
Bash
Executable File
51 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
abort() {
|
|
echo "ERROR: $1!"
|
|
exit 1
|
|
}
|
|
|
|
cd "$(dirname "$0")" || abort "Wrong directory"
|
|
|
|
if [ "$(which latexdiff)" = "" ]; then
|
|
abort "latexdiff is missing, check your TeX Live installation"
|
|
fi
|
|
|
|
if [ "$(which pdflatex)" = "" ]; then
|
|
abort "pdflatex is missing, check your TeX Live installation"
|
|
fi
|
|
|
|
rm -f ./*.aux ./*.log ./*.out ./*.pdf ./*.toc
|
|
|
|
pdflatex -draftmode Configuration.tex || \
|
|
abort "Unable to create configuration pdf"
|
|
pdflatex -draftmode Configuration.tex || \
|
|
abort "Unable to create configuration pdf with TOC"
|
|
pdflatex Configuration.tex || \
|
|
abort "Unable to create configuration pdf with TOC"
|
|
|
|
cd Differences || abort "Unable to process annotations"
|
|
|
|
rm -f ./*.aux ./*.log ./*.out ./*.pdf ./*.toc
|
|
|
|
latexdiff -s ONLYCHANGEDPAGE PreviousConfiguration.tex ../Configuration.tex \
|
|
> Differences.tex || \
|
|
abort "Unable to differentiate"
|
|
|
|
pdflatex -draftmode -interaction=nonstopmode Differences
|
|
pdflatex -draftmode -interaction=nonstopmode Differences
|
|
pdflatex -interaction=nonstopmode Differences
|
|
|
|
cd ../Errata || abort "Unable to process annotations"
|
|
|
|
rm -f ./*.aux ./*.log ./*.out ./*.pdf ./*.toc
|
|
|
|
pdflatex -draftmode Errata.tex || \
|
|
abort "Unable to create errata pdf"
|
|
pdflatex -draftmode Errata.tex || \
|
|
abort "Unable to create errata pdf with TOC"
|
|
pdflatex Errata.tex || \
|
|
abort "Unable to create errata pdf with TOC"
|
|
|
|
exit 0
|