summaryrefslogtreecommitdiff
path: root/zshfunc/update-lit
blob: abd89042078827c874c9728c1e4300ffbab8b07d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## vim:ft=zsh:foldmethod=marker

(
local f
local b=~/projects/uni/lit

(cd "$b" && (cd bibtex && git pull) && (cd papers && git pull))
for f in weasel.bib names-long.bib names-short.bib; do
  for p in "." "bibs"; do
    if [ -e "$p/$f" ] ; then
      cp "$b/bibtex/$f" "$p"
      if [ -e "$p/$f.local-diff" ]; then
        patch "$p/$f" < "$p/$f.local-diff"
      fi
    fi
  done
done
)