home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / bin / rexec < prev    next >
Encoding:
Text File  |  1989-11-18  |  658 b   |  28 lines

  1. #!/bin/sh
  2.  
  3. for i in * 
  4. do    
  5.     case $i in
  6.     *.[ch])    echo $* $i    # message
  7.         $* $i    ;;    # execute "command files_found"
  8.     *lib)
  9.         if( test -d $i) then
  10.             echo cd $i
  11.             cd $i
  12.             rexec $*
  13.             echo cd ..
  14.             cd ..
  15.         fi
  16.         ;;
  17.     *) 
  18.     esac
  19. done
  20. # Recursively execute a command on all files of *.[ch] format.
  21. #    existing on the system directories of the form ${TOPDIR}/*lib/*lib ... 
  22. # WARNING: It should be run from the top directory.
  23. #    No error messge at the moment
  24. #    Readable files (*.[ch]) should exists in . ./*lib ...
  25. #        to cause the action on them
  26. # It is a good policy to keep a set of copies of all modules in SCCS
  27. #    archives files on the system by "rsccs get SCCS".
  28.