generate.sh 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. for file in ../../../../boost/math/tools/*.hpp; do
  2. cat > tools_$(basename $file .hpp)_inc_test.cpp << EOF;
  3. // Copyright John Maddock 2006.
  4. // Use, modification and distribution are subject to the
  5. // Boost Software License, Version 1.0. (See accompanying file
  6. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // Basic sanity check that header <boost/math/tools/$(basename $file)>
  9. // #includes all the files that it needs to.
  10. //
  11. #include <boost/math/tools/$(basename $file .hpp).hpp>
  12. EOF
  13. done
  14. for file in ../../../../boost/math/distributions/*.hpp; do
  15. cat > dist_$(basename $file .hpp)_incl_test.cpp << EOF;
  16. // Copyright John Maddock 2006.
  17. // Use, modification and distribution are subject to the
  18. // Boost Software License, Version 1.0. (See accompanying file
  19. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  20. //
  21. // Basic sanity check that header <boost/math/distributions/$(basename $file)>
  22. // #includes all the files that it needs to.
  23. //
  24. #include <boost/math/distributions/$(basename $file .hpp).hpp>
  25. EOF
  26. done
  27. for file in ../../../../boost/math/special_functions/*.hpp; do
  28. cat > sf_$(basename $file .hpp)_incl_test.cpp << EOF;
  29. // Copyright John Maddock 2006.
  30. // Use, modification and distribution are subject to the
  31. // Boost Software License, Version 1.0. (See accompanying file
  32. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  33. //
  34. // Basic sanity check that header <boost/math/special_functions/$(basename $file)>
  35. // #includes all the files that it needs to.
  36. //
  37. #include <boost/math/special_functions/$(basename $file .hpp).hpp>
  38. EOF
  39. done