home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / x / xcu16.zip / clients / xcell / Perturb / breed next >
Text File  |  1991-10-03  |  2KB  |  41 lines

  1. #!/bin/sh
  2.  
  3. #
  4. # Copyright 1991 Cornell University
  5. #
  6. # Permission to use, copy, modify, and distribute this software and its
  7. # documentation for any purpose and without fee is hereby granted, provided
  8. # that the above copyright notice appear in all copies and that both that
  9. # copyright notice and this permission notice appear in supporting
  10. # documentation, and that the name of Cornell U. not be used in advertising
  11. # or publicity pertaining to distribution of the software without specific,
  12. # written prior permission.  Cornell U. makes no representations about the
  13. # suitability of this software for any purpose.  It is provided "as is"
  14. # without express or implied warranty.
  15. #
  16. # CORNELL UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  17. # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  18. # EVENT SHALL CORNELL UNIVERSITY BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  19. # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  20. # USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  21. # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  22. # PERFORMANCE OF THIS SOFTWARE.
  23. #
  24. # Author:  Gene W. Dykes, Program of Computer Graphics
  25. #          580 Theory Center, Cornell University, Ithaca, NY 14853
  26. #          (607) 255-6713   gwd@graphics.cornell.edu
  27. #
  28.  
  29. # Usage check
  30.  
  31. if [ ! -r p.generation ] ; then
  32.     echo 0 > p.generation
  33. fi
  34.  
  35. a=`/bin/cat p.generation`
  36. b=`expr $a + 1`
  37. echo $b > p.generation
  38.  
  39. xcell `/bin/cat options` \
  40.     -rules p$a -pick p$b -perturb
  41.