-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-cv.sh
executable file
·34 lines (27 loc) · 1.01 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
#!/bin/bash
if [ -d ~/.linuxbrew ]; then
PATH=/usr/bin:$PATH
fi
NAME=ranulfo
MAIN=${NAME}-cv
DOMAIN=${NAME}.netlify.app
# 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 "Ranulfo Bezerra"
#python3 tools/github-commits.py --first-year 2017 --last-year 2022 --username ranulfobezerra --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