--- In [EMAIL PROTECTED], Garth Winter Webb <[EMAIL PROTECTED]> wrote:
> On Fri, 13 Oct 2000, Greg A. Woods wrote:
> > 
> > However I would *STRONGLY* advise against trying to use CVS to 
track and
> > manage system configurations and I would *NEVER* use it to 
propogate
> > system configurations.
> 
> I would have to agree.

Of course, it is possible to manage configurations with a combination 
of CVS and Gnu make. This sample makefile allows you to collect files 
before checking them into CVS (make import) and to install them (make 
install):

============= same Makefile =======
TO1   := /tmp/dest
FROM1 := .
SRC1  := foo bar


ifdef import
import: $(patsubst %, $(FROM1)/%, $(SRC1))

$(FROM1)/%: $(TO1)/%
    cp $< $@
endif

ifdef install
install: $(patsubst %, $(TO1)/%, $(patsubst %.src,%, $(SRC1)))

$(TO1)/%: $(FROM1)/%
    cp $< $@
endif

ifndef NOGLOB
%:
    @$(MAKE) NOGLOB=1 $@=1 $@
endif


Of course, you'd want to check if the file is writable before you 
overwrite it.

Eugene.


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to