5.5. Splitting updates on commit by tag

Setup CVS so that when you commit to the DEV1 branch, only the development (foundation_dev) catalog will be updated. And when you commit with no tags (HEAD branch), the live (foundation) catalog will be updated. Here is an example loginfo. The -r <tag> may be used just in case your environment is such that the tags may be changed by other sources.

foundation   \
        (date; cat; ( \
        sleep 1; cd /var/lib/interchange/foundation_dev; cvs -q up -d; \
        cd /var/lib/interchange/foundation; \
        cvs -q up -d) &) >> $CVSROOT/CVSROOT/updatelog 2>&1
ALL     /usr/bin/cvs-log     $CVSROOT/CVSROOT/commitlog $USER "%{sVv}"