head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2001.06.05.01.37.54;	author stack;	state dead;
branches;
next	1.1;

1.1
date	2001.06.04.18.06.42;	author stack;	state Exp;
branches;
next	;


desc
@@


1.2
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
@#!/bin/sh
##
## This script replaces all 'cvs update -d' references in loginfo
## w/ 'cvs update -Cd'. 
##
## $Id: loginfo.sh.in,v 1.1 2001/06/04 18:06:42 stack Exp $
## 
loginfo="__SANDBOX__/data/helm/cvs/repository/CVSROOT/loginfo"
new_loginfo="/tmp/loginfo.$$"


## Check we've sourced a wholesome env.sh
##
function checkEnv
{
    if [ ! -n "${SANDBOX}" \
            -o ! -d "${SANDBOX}" \
            -o ! -e "${SANDBOX}/scripts/env.sh"  ]
    then
        echo "ERROR: SANDBOX is undefined or is not an extant dir."
        exit 1
    fi

    "${SANDBOX}/scripts/env_check" &> /dev/null
    if [ $? -ne 0 ]
    then
        echo "ERROR: ${SANDBOX}/scripts/env_check failed."
        echo "ERROR: Is env.sh set properly?"
        exit 1
    fi
}

## Script executions begins here.
##
checkEnv
if [ ! -e ${loginfo} ]
then
    echo "ERROR: No ${loginfo}"
    exit 1
fi
cat ${loginfo} \
    | sed "s/cvs -q update -d/cvs -q update -Cd/" > ${new_loginfo}
mv ${new_loginfo} ${loginfo}
chown tigrisc:tigris ${loginfo}
@


1.1
log
@Run script to convert loginfo use of 'cvs update -d' to 'cvs update -Cd'.
@
text
@d6 1
a6 1
## $Id$
@

