ack/distr/mkd

28 lines
341 B
Plaintext
Raw Normal View History

1988-04-18 10:13:57 +00:00
case $1 in
.) ;;
*) mkdir $DESTDIR/$1
;;
esac
1991-12-19 10:32:01 +00:00
p=$REPDIR/$1
dir=$1
if [ $# = 2 ]
then
if [ -f $2 ]
then
set `fgrep "$dir " $2`
fi
fi
cd $DESTDIR/$dir
1990-07-30 14:32:43 +00:00
if [ $# = 2 ]
1988-04-18 10:13:57 +00:00
then
1990-07-30 14:32:43 +00:00
RV $p $2 > /dev/null 2>&1
1991-12-19 10:32:01 +00:00
echo "$dir $2"
1988-04-18 10:13:57 +00:00
else
if `CV $p > /dev/null 2>&1`
then
1991-12-19 10:32:01 +00:00
echo "$dir `RC -i`"
1988-04-18 10:13:57 +00:00
else
1991-12-19 10:32:01 +00:00
echo "-- $dir CV failed for some reason" 1>&2
1988-04-18 10:13:57 +00:00
fi
fi