Subversion

http://subversion.tigris.org/

Automating tasks

A handy makefile (easily substitute your own command for other version management tools):

# Default command
CMD=stat

# Version management program
PROG=svn

all: cmd

DIRS = \
        project_a \
        project_b \
        project_c \
        project_c_branch_x

up: .phony
        $(MAKE) cmd CMD=up

stat: .phony
        $(MAKE) cmd CMD=stat

info: .phony
        $(MAKE) cmd CMD=info

cmd: .phony
        @for DIR in $(DIRS) ; \
        do \
                echo "$(PROG) $(CMD) in: $$DIR"; \
                ( cd $$DIR; $(PROG) $(CMD) ) ; \
        done

.phony:

BradsWiki: Programming Notes/Subversion (last edited 2012-12-23 00:32:02 by BradleyDean)