initial commit

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2022-01-09 17:30:53 -05:00
commit df4823863f
11 changed files with 190 additions and 0 deletions

19
bin/studentlatex Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Usage: $0 <tex file> [other required files...]"
exit 1
fi
source ~/studentvars
TEX_FILE=$1
PDF_FILE=${TEX_FILE%.tex}.pdf
for FILE in "$@"; do
scp $FILE "${UW_SERVER}:~/cs240/${FILE}"
done
ssh $UW_SERVER "cd ~/latex; pdflatex ${TEX_FILE}"
scp "${UW_SERVER}:~/latex/${PDF_FILE}" ${PDF_FILE}