ack/distr/dwalk

27 lines
405 B
Plaintext
Raw Normal View History

#!/bin/sh
1985-04-14 23:26:24 +00:00
: ${CDIR=.}
1988-04-08 12:50:10 +00:00
${DF-:} $CDIR .distr
if test ! -r $DESTDIR/$CDIR/.distr
1985-04-14 23:26:24 +00:00
then
1991-10-16 13:28:48 +00:00
echo ++ no .distr in $CDIR 1>&2
1985-04-14 23:26:24 +00:00
exit 0
fi
1988-04-08 12:50:10 +00:00
for i in `cat $DESTDIR/$CDIR/.distr`
1985-04-14 23:26:24 +00:00
do
if test -d $i
then
( if cd $i
then
CDIR=$CDIR/$i
export CDIR
1990-07-30 14:32:43 +00:00
exec $DDIR/dwalk $*
1985-04-14 23:26:24 +00:00
else
1991-10-16 13:28:48 +00:00
echo ++ Could not access $CDIR/$i 1>&2
1985-04-14 23:26:24 +00:00
fi
)
else
${DF-:} $CDIR $i
fi
done