3 # $Id: cvsshow,v 1.1 2002/08/01 18:51:44 rstory Exp $
12 echo "usage: $0 <working directory>"
18 if [ ! -d $DIR ]; then
19 echo "no such directory '$DIR'"
23 if [ ! -d $DIR/CVS ]; then
24 echo "'$DIR' has no CVS directory!"
28 if [ ! -f $DIR/CVS/Repository ]; then
29 echo "'$DIR' has no CVS/Repository!"
33 if [ ! -f $DIR/CVS/Root ]; then
34 echo "'$DIR' has no CVS/Root!"
38 if [ -f $DIR/CVS/Tag ]; then
39 TAG="-r `cat $DIR/CVS/Tag | cut -c 2-`"
42 REP="`cat $DIR/CVS/Repository`"
43 ROOT="`cat $DIR/CVS/Root`"
45 echo "Directory $DIR is rooted at $ROOT, $TAG $REP..."
46 echo "update with cvs -z3 -d $ROOT -q co $TAG -d $DIR $REP"