From 6f38c3b87b69f5b6041c58f500219df3faa6180c Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 8 Jul 2014 11:39:56 +0000 Subject: Make update-lit update local files too git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@677 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- zshfunc/update-lit | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'zshfunc') 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 ) -- cgit v1.2.3