dwalk 410 B

12345678910111213141516171819202122232425
  1. : ${CDIR=.}
  2. ${DF-:} $CDIR .distr
  3. if test ! -r $DESTDIR/$CDIR/.distr
  4. then
  5. echo ++ no .distr in $CDIR
  6. exit 0
  7. fi
  8. for i in `cat $DESTDIR/$CDIR/.distr`
  9. do
  10. if test -d $i
  11. then
  12. ( if cd $i
  13. then
  14. ${DD-:} $CDIR $i
  15. CDIR=$CDIR/$i
  16. export CDIR
  17. exec /proj/em/distr/dwalk
  18. else
  19. echo ++ Could not access $CDIR/$i
  20. fi
  21. )
  22. else
  23. ${DF-:} $CDIR $i
  24. fi
  25. done