No warm-up solutions
All checks were successful
Lints / typos (push) Successful in 46s
Build and deploy / build (push) Successful in 8m15s

This commit is contained in:
Mark 2025-01-20 19:16:01 -08:00
parent 6bb56693f8
commit 358e26a0cb
Signed by: Mark
GPG Key ID: C6D63995FE72FD80

View File

@ -23,6 +23,7 @@ rm -f "${target_zip}"
# job_name: name of this document. Output is saved as job_name.pdf # job_name: name of this document. Output is saved as job_name.pdf
# doc_dir: cd here before building. # doc_dir: cd here before building.
# main_file: build this tex file. Usually main.tex # main_file: build this tex file. Usually main.tex
# solutions: if 1, build solutions too
function build() { function build() {
local b_target_dir="${1}" local b_target_dir="${1}"
local job_name="${2}" local job_name="${2}"
@ -56,6 +57,7 @@ function build() {
echo "" echo ""
fi fi
if [[ $5 == 1 ]]; then
# Build solutions # Build solutions
echo "\\def\\argYesSolutions{1}\\input{${main_file}}" | echo "\\def\\argYesSolutions{1}\\input{${main_file}}" |
"${tectonic}" \ "${tectonic}" \
@ -80,6 +82,7 @@ function build() {
# rm "${b_target_dir}/${job_name}.sols.pdf" # rm "${b_target_dir}/${job_name}.sols.pdf"
# solution_stat=1; # solution_stat=1;
#fi #fi
fi
echo "" echo ""
@ -113,7 +116,8 @@ for d in "${run_dir}/Misc/Warm-Ups"/*.tex; do
"${target_dir}/Warm-Ups" \ "${target_dir}/Warm-Ups" \
"${file%.*}" \ "${file%.*}" \
"${run_dir}/Misc/Warm-Ups" \ "${run_dir}/Misc/Warm-Ups" \
"${file}" "${file}" \
0
done done
for d in "${run_dir}/Advanced"/*/; do for d in "${run_dir}/Advanced"/*/; do
@ -124,7 +128,8 @@ for d in "${run_dir}/Advanced"/*/; do
"${target_dir}/Advanced" \ "${target_dir}/Advanced" \
"${job_name}" \ "${job_name}" \
"${doc_dir}" \ "${doc_dir}" \
"main.tex" "main.tex" \
1
done done
for d in "${run_dir}/Intermediate"/*/; do for d in "${run_dir}/Intermediate"/*/; do
@ -135,7 +140,8 @@ for d in "${run_dir}/Intermediate"/*/; do
"${target_dir}/Intermediate" \ "${target_dir}/Intermediate" \
"${job_name}" \ "${job_name}" \
"${doc_dir}" \ "${doc_dir}" \
"main.tex" "main.tex" \
1
done done
echo -n "{}]" >>"$target_dir/index.json" echo -n "{}]" >>"$target_dir/index.json"