update_branches revision 133015326138df036e018e197017f9086cb8e135
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# Permission to use, copy, modify, and distribute this software for any
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# purpose with or without fee is hereby granted, provided that the above
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# copyright notice and this permission notice appear in all copies.
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# PERFORMANCE OF THIS SOFTWARE.
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# $Id: update_branches,v 1.12 2005/05/17 00:58:41 marka Exp $
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# Track which branches are still open or not in the bind9 cvs repository.
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# This is done so that work that is "in progress" (active) doesn't get
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# so easily forgotten about.
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# This script updates doc/private/branches by adding new branches and moving
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# closed branches to the end of the file. New branches are found by walking
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# the cvs repository and extracting the new branches from the header fields
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# of the files there.
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# doc/private/branches has one line per branch in the following field order:
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# name, status, to whom the branch belongs and comments. Comments are
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# in '(',')'. The first three field are single words.
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# Make sure we have a up to date copy. If the previous ran failed for
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# any reason remove it (-C).
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson!system("cvs", "-d", "/proj/cvs/prod", "update", "-C", "doc/private/branches") || die "cannot update doc/private/branches: $!";
d49d75f5073294d798aa500728116309398bb535Andreas Gustafsson# load existing content
d49d75f5073294d798aa500728116309398bb535Andreas Gustafssonopen(BRANCHES, "<doc/private/branches") || die "can't open util/branches: $!";
last;
$tabs = 1;
$tabs++;
$tabs = 1;
$tabs++;
rename("doc/private/newbranches", "doc/private/branches") || die "Cannot rename: doc/private/newbranches -> doc/private/branches: $!";