fix outgoing QOS prios
[tomato.git] / release / src / router / snmp / dist / cvsshow
blobbe06996e5b59cbaa2001a2d9384b47c0290ff0ed
1 #!/bin/bash
3 # $Id: cvsshow,v 1.1.2.1 2004/06/20 21:54:34 nikki Exp $
5 export CVS_RSH=ssh
6 TAG=
8 if [ $# -eq 0 ]; then
9 DIR=.
10 else
11 if [ $# -ne 1 ]; then
12 echo "usage: $0 <working directory>"
13 exit
15 DIR=$1
18 if [ ! -d $DIR ]; then
19 echo "no such directory '$DIR'"
20 exit
23 if [ ! -d $DIR/CVS ]; then
24 echo "'$DIR' has no CVS directory!"
25 exit
28 if [ ! -f $DIR/CVS/Repository ]; then
29 echo "'$DIR' has no CVS/Repository!"
30 exit
33 if [ ! -f $DIR/CVS/Root ]; then
34 echo "'$DIR' has no CVS/Root!"
35 exit
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"