forked from Phlow/feeling-responsive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
15 lines (13 loc) · 646 Bytes
/
Copy pathMakefile
File metadata and controls
15 lines (13 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SHELL:=/bin/bash
all: bib
bundle exec jekyll serve --config _config.yml,_config_dev.yml
bib:
cat "`kpsewhich 'Leon Moonen Publications.bib'`" \
| perl -pe 's|file = {:Users/leon/Documents/Mendeley/(.*)\.pdf:pdf}|url_Paper = {publications/\1.pdf}|' \
| bibclean -no-fix-names -max-width 5000 \
> assets/publications_leon_moonen.bib
grep "url_paper" assets/publications_leon_moonen.bib | perl -p -e 's|\s*url_paper\s*=\s*"publications/(.*)\.pdf",|cp "/Users/leon/Documents/Mendeley/\1.pdf" "assets/publications/\1.pdf"|' > /tmp/script
mkdir -p assets/publications
source /tmp/script
git add assets/publications/*.pdf
rm /tmp/script