ack/distr/mktree

29 lines
461 B
Plaintext
Raw Normal View History

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
cd $REPDIR
1985-04-14 23:26:24 +00:00
DD=$DDIR/mkd
DF=$DDIR/mkf
DA=$DDIR/mka
1991-12-19 10:32:01 +00:00
export DDIR DESTDIR DD DF DA REPDIR
$DDIR/dwalk $3
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" .