summaryrefslogtreecommitdiffstats
path: root/bin/create_cvs.in
diff options
context:
space:
mode:
authorTar Committer <tar@ocjtech.us>2004-01-12 03:17:26 +0000
committerTar Committer <tar@ocjtech.us>2004-01-12 03:17:26 +0000
commit989312339ea2e16579803a48700628c5469e327a (patch)
tree967ee77195819d70f2dc675444e92340bb98e0d6 /bin/create_cvs.in
parentff168ecfe045c690c24d5bbc5a3062bf9d64120c (diff)
downloadrancid-989312339ea2e16579803a48700628c5469e327a.tar.gz
rancid-989312339ea2e16579803a48700628c5469e327a.tar.xz
rancid-989312339ea2e16579803a48700628c5469e327a.zip
Imported from rancid-2.3.rc1.tar.gz.rancid-2.3.rc1
Diffstat (limited to 'bin/create_cvs.in')
-rwxr-xr-xbin/create_cvs.in89
1 files changed, 0 insertions, 89 deletions
diff --git a/bin/create_cvs.in b/bin/create_cvs.in
deleted file mode 100755
index 06d414b..0000000
--- a/bin/create_cvs.in
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-##
-##
-## Copyright (C) 1996-2001 by Henry Kilmer.
-## All rights reserved.
-##
-## This software may be freely copied, modified and redistributed without
-## fee for non-commerical purposes provided that this copyright notice is
-## preserved intact on all copies and modified copies.
-##
-## There is no warranty or other guarantee of fitness of this software.
-## It is provided solely "as is". The author(s) disclaim(s) all
-## responsibility and liability with respect to this software's usage
-## or its effect upon hardware, computer systems, other software, or
-## anything else.
-##
-##
-#
-# Create all of the misc files & dirs needed.
-#
-# create_cvs
-#
-
-# Read in the environment
-ENVFILE="`dirname $0`/env"
-
-. $ENVFILE
-
-# Base dir
-if [ ! -d $BASEDIR ]; then
- mkdir -p $BASEDIR
-fi
-
-cd $BASEDIR
-
-# Top level CVS stuff
-if [ ! -d $CVSROOT ]; then
- cvs init
-fi
-
-# Log dir
-if [ ! -d logs ]; then
- mkdir logs
-fi
-
-# Which groups to do
-if [ $# -ge 1 ] ; then
- LIST_OF_GROUPS="$*"; export LIST_OF_GROUPS
-elif [ "$LIST_OF_GROUPS" = "" ] ; then
- echo "LIST_OF_GROUPS is empty in $ENVFILE"
- exit 1
-fi
-
-for GROUP in `echo $LIST_OF_GROUPS` ;
-do
-
- DIR=$BASEDIR/$GROUP
-
- # Directory for the group and the configs
- if [ ! -d $DIR ]; then
- mkdir -p $DIR
- cd $DIR
- cvs import -m "$GROUP" $GROUP new rancid
- cd $BASEDIR
- cvs co $GROUP
- fi
- cd $DIR
- if [ ! -d configs ]; then
- mkdir configs
- cvs add configs
- cvs commit -m 'new' configs
- fi
-
- # main files
- if [ ! -f routers.all ]; then
- touch routers.all
- fi
- if [ ! -f routers.down ]; then
- touch routers.down
- fi
- if [ ! -f routers.up ]; then
- touch routers.up
- fi
- if [ ! -f router.db ]; then
- touch router.db
- cvs add router.db
- cvs commit -m 'new' router.db
- fi
-done