mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
37 lines
898 B
Bash
Executable File
37 lines
898 B
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 Configuration.tex || \
|
|
abort "Unable to create configuration pdf"
|
|
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 Differences || \
|
|
abort "Unable to create differences pdf"
|
|
pdflatex Differences || \
|
|
abort "Unable to create differences pdf with TOC"
|