Download code/notes/src/build_m1.sh from viai957/align: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/viai957/align/resolve/main/code/notes/src/build_m1.sh
- Command line
-
hf download hf://viai957/align/code/notes/src/build_m1.sh
-
curl -L -o build_m1.sh https://huggingface.co/viai957/align/resolve/main/code/notes/src/build_m1.sh
411 Bytes
| # usage: ./build_m1.sh 0101-slug "0101 - Title" | |
| set -eo pipefail | |
| source /apps/paper-tools/env.sh >/dev/null 2>&1 | |
| cd "$(dirname "$0")" | |
| mkdir -p build/m1 | |
| TEXINPUTS=".:$TEXINPUTS" latexmk -pdf -interaction=nonstopmode -halt-on-error -outdir=build/m1 "$1.tex" >build/m1/$1.console.log 2>&1 || { tail -40 build/m1/$1.console.log; exit 1; } | |
| cp "build/m1/$1.pdf" "../$2.pdf" | |
| echo "built ../$2.pdf" | |