update_branches revision b08e3be5dbfba22719ae9c428bd6853ac6f09798
0N/A# Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC") 0N/A# Permission to use, copy, modify, and distribute this software for any 0N/A# purpose with or without fee is hereby granted, provided that the above 2362N/A# copyright notice and this permission notice appear in all copies. 2362N/A# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 0N/A# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 0N/A# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 0N/A# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 0N/A# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 0N/A# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 0N/A# PERFORMANCE OF THIS SOFTWARE. 0N/A# $Id: update_branches,v 1.13 2005/05/17 03:31:44 marka Exp $ 0N/A# Track which branches are still open or not in the bind9 cvs repository. 2362N/A# This is done so that work that is "in progress" (active) doesn't get 2362N/A# so easily forgotten about. 0N/A# closed branches to the end of the file. New branches are found by walking 0N/A# the cvs repository and extracting the new branches from the header fields 0N/A# of the files there. 0N/A# name, status, to whom the branch belongs and comments. Comments are 0N/A# in '(',')'. The first three field are single words. 0N/A# Make sure we have a up to date copy. If the previous ran failed for 0N/A# any reason remove it (-C). 0N/A $c =~ s:.*?//\s*(.*)$:$1:; 0N/A # look for old style comment 0N/A $c =~ s/.*\((.*)\).*$/$1/; 0N/A# Search repository for new branches. # print "file: $_\n"; # debug # $file = $_; # save for branch debug below. # use cvs so that the file is locked. #print "cvs -d $repository rlog -h $_\n"; next unless m/\.0\.\d$/; # skip if not a branch s/\s(.*):.*/$1/; # extract label # print "branch: $_ $file\n"; # debug chomp while (<FILE>); # let cvs rlog exit normally. # Write out updated version. print BRANCHES "\nBranch\t\t\t\tStatus\tWhom\t// Comments\n";
print BRANCHES "----------------------------------------------------------\n\n";
print BRANCHES "//\t\t\t\tnew\tnot yet clasified\n";
print BRANCHES "//\t\t\t\topen\tdevelopement branch\n";
print BRANCHES "//\t\t\t\tactive\tnot a development branch\n";
print BRANCHES "//\t\t\t\treview\tready for review\n";
print BRANCHES "//\t\t\t\tprivate\tprivate branch\n";
print BRANCHES "//\t\t\t\tclosed\tfinished with\n";
for ($i = 0; $i < $tabs; $i++) { for ($i = 0; $i < $tabs; $i++) {