goTidy 438 B

1234567891011121314151617
  1. #!/bin/bash
  2. #######################################################################
  3. #
  4. # File: goTidy
  5. #
  6. # Description: Tidy is best used inside a loop, but Makefiles don't do
  7. # bash loops well. This file alleviates that problem.
  8. #
  9. # Author: James Robertson
  10. #
  11. ########################################################################
  12. for file in `find "$1" -name "*.html"`; do
  13. tidy -config tidy.conf $file
  14. done
  15. exit 0