head	1.9;
access;
symbols
	TIGRIS_1_1_0RC2:1.6
	TIGRIS_1_1_0RC1:1.6
	TIGRIS_1_1:1.6.0.10
	TIGRIS_1_0_8:1.6
	TIGRIS_1_0_8RC3:1.6
	TIGRIS_1_0_8RC2:1.6
	TIGRIS_1_0_8RC1:1.6
	TIGRIS_1_0_7:1.6
	TIGRIS_1_0_7RC3:1.6
	TIGRIS_1_0_7RC2:1.6
	TIGRIS_1_0_7RC1:1.6
	TIGRIS_1_0_6:1.6
	TIGRIS_1_0_6RC5:1.6
	TIGRIS_1_0_6RC4:1.6
	TIGRIS_1_0_6RC3:1.6
	TIGRIS_1_0_6RC2:1.6
	TIGRIS_1_0_6RC1:1.6
	TIGRIS_1_0_5:1.6
	TIGRIS_1_0_5RC6:1.6
	TIGRIS_1_0_5RC5:1.6
	TIGRIS_1_0_5RC4:1.6
	TIGRIS_1_0_5RC3:1.6
	TIGRIS_1_0_5RC2:1.6
	TIGRIS_1_0_5RC1:1.6
	TIGRIS_1_0_4:1.6
	TIGRIS_1_0_3:1.6
	TIGRIS_1_0_2:1.6
	TIGRIS_1_0_1:1.6
	TIGRIS_1_0:1.6.0.12
	TIGRIS_1_0_0:1.6
	TIGRIS_1_0_0_RC1:1.6.0.8
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.6
	TIGRIS_0_9_2_3:1.6
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.6
	TIGRIS_0_9_2_1:1.6
	TIGRIS_0_9_2:1.6.0.6
	TIGRIS_0_9_0:1.6.0.4
	TIGRIS_0_8_4:1.6.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1
	OLDHELM:1.5.0.4
	TIGRIS_NOV_11_2000:1.5
	TIGRIS_SEP_13_2000:1.5.0.2
	TIGRIS_BASELINE:1.5;
locks; strict;
comment	@# @;


1.9
date	2001.08.14.21.57.24;	author edk;	state dead;
branches;
next	1.8;

1.8
date	2001.06.05.01.37.54;	author stack;	state Exp;
branches;
next	1.7;

1.7
date	2001.06.04.16.26.47;	author stack;	state Exp;
branches;
next	1.6;

1.6
date	2000.11.22.00.06.12;	author thom;	state Exp;
branches;
next	1.5;

1.5
date	2000.03.15.23.29.12;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2000.03.15.05.30.26;	author jrobbins;	state Exp;
branches;
next	1.3;

1.3
date	2000.03.15.05.12.29;	author jrobbins;	state Exp;
branches;
next	1.2;

1.2
date	2000.02.03.04.21.34;	author jrobbins;	state Exp;
branches;
next	1.1;

1.1
date	2000.01.30.03.22.37;	author jrobbins;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.17.03;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.35.42;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.9
log
@remove obsolete/non-functional scripts
@
text
@# ================================================================
# Copyright (c) 2000 Collab.Net.  All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 
# 3. The end-user documentation included with the redistribution, if
# any, must include the following acknowlegement: "This product includes
# software developed by Collab.Net (http://www.Collab.Net/)."
# Alternately, this acknowlegement may appear in the software itself, if
# and wherever such third-party acknowlegements normally appear.
# 
# 4. The hosted project names must not be used to endorse or promote
# products derived from this software without prior written
# permission. For written permission, please contact info@@collab.net.
# 
# 5. Products derived from this software may not use the "Tigris" name
# nor may "Tigris" appear in their names without prior written
# permission of Collab.Net.
# 
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL COLLAB.NET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# ====================================================================
# 
# This software consists of voluntary contributions made by many
# individuals on behalf of Collab.Net.
#


# Helm/CVSloginfo.pm
# --------------------
# Update the cvs loginfo file. 
# What do we do with loginfo? Well, we set it up to keep the Web directories
# updated. So maybe this should be an Helm::Apache* module. But it's not.

package Helm::CVSloginfo;

use Helm::Updater;
@@ISA = qw(Helm::Updater);

use strict;

use Rcs;

sub user {
    my ($class, $db) = @@_;
    return $db->config('cvs_user');
}

# update Helm::CVSUsers $db;
# We just process the list of modules and add them. Trivial, really.
sub update {
    my ($class, $db) = @@_;
    my $cvsroot = $db->config('cvs_cvsroot');
    my $htdocs = $db->config('apache_htdocs');

    # In order to change files in the CVSROOT directory, we need to
    # interact with the CVS system there - so that we don't get messed
    # up by anyone trying to alter the files with CVS (although they
    # shouldn't). So we use RCS to make our changes. This will break if
    # CVS ever uses a non-RCS version control system.

    # Unfortunately, this doesn't work when Perl runs setuid. Gah.
    # We'll try and fix it later. For now, we make loginfo non-

    #my $rcs = new Rcs;
    #$rcs->bindir($db->config('cvs_rcsbin'));

    #$rcs->rcsdir("$cvsroot/CVSROOT");
    #$rcs->workdir("$cvsroot/CVSROOT");
    #$rcs->file('loginfo');

    #$rcs->co('-l');
    open(LOGINFO, ">$cvsroot/CVSROOT/loginfo")
	or die "Could not open CVSROOT/loginfo: $!\n";

    print LOGINFO "# THIS FILE WAS AUTOMATICALLY GENERATED - DO NOT EDIT\n";
    print LOGINFO "# output from Helm::CVSloginfo\n\n";

    # TODO - deal with this better
    # pass pserver user info to log_accum script
    print LOGINFO 'ALL $CVSROOT/CVSROOT/commitlog $USER %{sv}', "\n";
    print LOGINFO 'ALL $CVSROOT/CVSROOT/log_accum -u $USER %s', "\n\n";

    # Any web-based module will be in the module_website table
    my $sth = $db->dbh->prepare("SELECT project,module FROM module_website");
    $sth->execute;

    my ($project, $module);
    while (($project, $module) = $sth->fetchrow_array) {
	print LOGINFO ("^$project/$module ",
		       "(sleep 2; cd $htdocs/$project/$module; ",
		       $db->config('cvs_cvsbin'), "/cvs -q update -d) &\n");
    }

    close LOGINFO;
    #$rcs->ci('-u', '-mHelm Revision');
}

# Nothing special beyond updating
sub add_project {
}
sub del_project {
}

@


1.8
log
@Backing out my adding of the '-C' flag to cvs update in loginfo.  It doesn't
work inside loginfo.  Inside loginfo, a patch is applied to the file on
disk. If file on disk has been locally modified or is not the immediate
ancestor, the patch will often fail -- there will be merge errors.  Outside
of loginfo, the locally-modified file is moved aside if there will be
conflicts merging; then the file is updated.

Spent a while trying to figure why the difference.  Local vs. remote
repository is the only obvious difference.  Backing out change for not so
doesn't interfere w/ rolling of T106.
@
text
@@


1.7
log
@Change the cvs updating of web content so it does 'cvs update -Cd'
rather than 'cvs update -d' (The -C says, do fresh checkout; ignore
what is on the filesystem already; do not try to merge).
@
text
@d111 1
a111 1
		       $db->config('cvs_cvsbin'), "/cvs -q update -Cd) &\n");
@


1.6
log
@added commitlog line to loginfo
@
text
@d111 1
a111 1
		       $db->config('cvs_cvsbin'), "/cvs -q update -d) &\n");
@


1.5
log
@test of ability to check in
@
text
@d100 1
@


1.4
log
@added comment, also testing log_accum message format
@
text
@d122 1
@


1.3
log
@added pserver user parameter to call to log_accum in header of loginfo generation
@
text
@d99 1
@


1.2
log
@Added tigris.org license
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d99 1
a99 1
    print LOGINFO 'ALL $CVSROOT/CVSROOT/log_accum %s', "\n\n";
@


1.1
log
@initial checkin
@
text
@d1 46
a46 1
# Copyright (c) 2000 Collab.Net, Inc.
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@d1 1
a1 46
# ================================================================
# Copyright (c) 2000 Collab.Net.  All rights reserved.
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 
# 3. The end-user documentation included with the redistribution, if
# any, must include the following acknowlegement: "This product includes
# software developed by Collab.Net (http://www.Collab.Net/)."
# Alternately, this acknowlegement may appear in the software itself, if
# and wherever such third-party acknowlegements normally appear.
# 
# 4. The hosted project names must not be used to endorse or promote
# products derived from this software without prior written
# permission. For written permission, please contact info@@collab.net.
# 
# 5. Products derived from this software may not use the "Tigris" name
# nor may "Tigris" appear in their names without prior written
# permission of Collab.Net.
# 
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL COLLAB.NET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# ====================================================================
# 
# This software consists of voluntary contributions made by many
# individuals on behalf of Collab.Net.
#

d54 1
a54 2
    # pass pserver user info to log_accum script
    print LOGINFO 'ALL $CVSROOT/CVSROOT/log_accum -u $USER %s', "\n\n";
a75 1

@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a99 1
    print LOGINFO 'ALL $CVSROOT/CVSROOT/commitlog $USER %{sv}', "\n";
@


