Files
texlive-action/compile.sh
2023-12-20 10:29:05 +01:00

18 lines
283 B
Bash
Executable File

#!/bin/sh
set -euo pipefail
files="$1"
compiler="$2"
options="$3"
for f in $files; do
if [-f "$f" ]; then
echo "Compiling '$f'.."
$compiler $options $f
$compiler $options $f # Run twice to make sure everything is OK
else
echo "'$f' not found!"
fi
done