run 393 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. function showpwd ()
  3. {
  4. echo '=============' `pwd`
  5. }
  6. # perform programs self test
  7. showpwd
  8. ./perfect_hash.py --test || exit 1
  9. # update documentation
  10. for folder in doc
  11. do
  12. cd $folder
  13. showpwd
  14. make
  15. cd ..
  16. done
  17. # run examples
  18. for folder in example* graph
  19. do
  20. cd $folder
  21. showpwd
  22. make || exit 1
  23. make test || exit 1
  24. make clean
  25. cd ..
  26. done
  27. rm perfect_hash.pyc