[Vim-latex-cvs] vimfiles makefile,1.5,1.6
Brought to you by:
srinathava,
tmaas
From: <ma...@us...> - 2002-11-04 14:15:25
|
Update of /cvsroot/vim-latex/vimfiles In directory usw-pr-cvs1:/tmp/cvs-serv31858 Modified Files: makefile Log Message: I added targets to the makefile: install, stallin (reverse install, for lack of a better name), and sync. These require rsync to be installed (but use it only locally, like cp with lots of options). The idea is that after a "cvs update" you can "make install" to put the files in your ~/.vim directory (or another directory, using "make install VIMFILES=..."). Then, you can edit and test the files, run "make stallin", and "cvs commit". If you have some changes in your local CVS directory and some in your vimfiles directory, you can use "make sync". Index: makefile =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/makefile,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** makefile 2 Nov 2002 09:41:38 -0000 1.5 --- makefile 4 Nov 2002 14:15:20 -0000 1.6 *************** *** 50,51 **** --- 50,86 ---- upload: pscp latexSuite.* $(CVSUSER)@vim-latex.sf.net:/home/groups/v/vi/vim-latex/htdocs/download/ + + # rsync is like cp (copy) on steroids. Here are some useful options: + # -C auto ignore like CVS + # -r recurse into directories + # -t preserve times + # -u update (do not overwrite newer files) + # -W whole files, no incremental checks (default for local usage) + # --existing only update files that already exist + # --exclude exclude files matching the pattern + # -n dry run (for testing) + + # Usage: after "cvs update", do + # make install [VIMFILES=path/to/vimfiles] + # Before "cvs commit", do + # make stallin [VIMFILES=path/to/vimfiles] + # If you have made changes in both directories, and want to keep the most + # recent versions, do + # make sync [VIMFILES=path/to/vimfiles] + # Note: defining VIMFILES when you invoke make overrides the value below. + # Warning: install and stallin do not check modification times! + + VIMFILES=${HOME}/.vim + EXCLUDE="--exclude='*~' --exclude='*.swp' --exclude='makefile'" + + install: + rsync -CrtW ${EXCLUDE} . ${VIMFILES} + + # stallin = reverse install + # If you can think of a better name for this target, be my guest! + stallin: + rsync -CrtW --existing ${VIMFILES} . + + sync: + rsync -CrtuW ${EXCLUDE} . ${VIMFILES} + rsync -CrtuW --existing ${VIMFILES} . |