1985-04-14 23:26:24 +00:00
|
|
|
case $# in
|
1991-12-19 10:32:01 +00:00
|
|
|
2|3) ;;
|
|
|
|
*) echo Usage: $0 directory repdir [ SVrecord ] 1>&2 ; exit 1 ;;
|
|
|
|
esac
|
|
|
|
case $0 in
|
|
|
|
/*) DDIR=`dirname $0`
|
|
|
|
;;
|
|
|
|
*) DDIR=`pwd`/`dirname $0`
|
|
|
|
;;
|
1985-04-14 23:26:24 +00:00
|
|
|
esac
|
|
|
|
case $1 in
|
|
|
|
/*) DESTDIR=$1 ;;
|
|
|
|
*) DESTDIR=`pwd`/$1 ;;
|
|
|
|
esac
|
1991-12-19 10:32:01 +00:00
|
|
|
case $2 in
|
|
|
|
/*) REPDIR=$2 ;;
|
|
|
|
*) REPDIR=`pwd`/$2 ;;
|
|
|
|
esac
|
1995-12-06 09:52:54 +00:00
|
|
|
# DD=$DDIR/mkd
|
|
|
|
# export DD
|
|
|
|
mkdir -p $DESTDIR
|
|
|
|
CVSROOT=/usr/proj/em/Repositories
|
|
|
|
export CVSROOT
|
|
|
|
cd $DESTDIR
|
|
|
|
case $# in
|
|
|
|
3)
|
|
|
|
cvs checkout world -r $3
|
|
|
|
;;
|
|
|
|
2)
|
|
|
|
cvs checkout world
|
|
|
|
;;
|
|
|
|
esac
|
1991-12-19 10:32:01 +00:00
|
|
|
cd $REPDIR
|
1985-04-14 23:26:24 +00:00
|
|
|
DF=$DDIR/mkf
|
|
|
|
DA=$DDIR/mka
|
1995-12-06 09:52:54 +00:00
|
|
|
export DDIR DESTDIR DF DA REPDIR
|
|
|
|
|
|
|
|
$DDIR/dwalk
|
1993-11-12 10:56:15 +00:00
|
|
|
|
|
|
|
cd $DESTDIR
|
|
|
|
find . -type d -print | xargs chmod "uog+rx"
|
|
|
|
chmod -R "og-w,u+w,uog+r" .
|