1 2 3 4 5 6 7 8
#!/usr/bin/env zsh gup -u ${2%.pdf}.tex for i in $(seq 0 1); do lualatex ${2%.pdf}.tex done [[ -e "$2" ]] && touch "$2"