-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-cv.sh
executable file
·38 lines (31 loc) · 1.18 KB
/
build-cv.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
if [ -d ~/.linuxbrew ]; then
PATH=/usr/bin:$PATH
fi
NAME=laufer
MAIN=${NAME}-cv
DOMAIN=${NAME}.cs.luc.edu
# Each of my BibTeX entries is kept in a separate file and assembled into one (for each type of publication).
# Makes it easier to keep up-to-date.
# Every entry in the .bib MUST have a year to sort properly. (We don't rigidly sort by other fields, month, day, since these don't always appear).
echo "Collating bibliography"
pushd bibs >& /dev/null
bash gather.sh
popd >& /dev/null
sleep 5
echo "Obtaining Google Scholar Data"
python3 tools/scholarly-metrics.py --name "Konstantin Läufer"
datecmd=$(which gdate)
[ -x "$datecmd" ] || datecmd=$(which date)
first_year=$($datecmd --date="5 years ago" +%Y)
last_year=$($datecmd --date="1 year ago" +%Y)
python3 tools/github-commits.py --first-year $first_year --last-year $last_year --username klaeufer --modern-cv
sleep 5
latexmk -output-directory="./build" -C -pdf ${MAIN}.tex
latexmk -output-directory="./build" -pdf ${MAIN}.tex
if [ -f build/${MAIN}.pdf ]; then
if [ -d ../${DOMAIN} ]; then
cat bibliography/*.bib > ../${DOMAIN}/_bibliography/papers.bib
echo "Copied latest bibliography to website folder"
fi
fi