summaryrefslogtreecommitdiff
path: root/zshfunc
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2014-07-08 11:39:56 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2014-07-08 11:39:56 +0000
commit6f38c3b87b69f5b6041c58f500219df3faa6180c (patch)
tree9c6065dd645510669e9f68f93dcd3388577ccef4 /zshfunc
parent0b0edffb7207867bf373dabda2db193e99701d8a (diff)
Make update-lit update local files too
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@677 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'zshfunc')
-rwxr-xr-xzshfunc/update-lit8
1 files changed, 7 insertions, 1 deletions
diff --git a/zshfunc/update-lit b/zshfunc/update-lit
index b596074..92b04a4 100755
--- a/zshfunc/update-lit
+++ b/zshfunc/update-lit
@@ -1,5 +1,11 @@
## vim:ft=zsh:foldmethod=marker
(
-cd ~/projects/uni/lit && (cd bibtex && git pull) && (cd papers && git pull)
+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
+ if [ -e "$f" ] ; then cp "$b/bibtex/$f" .; fi
+done
)