maketutorial.sh 813 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Create the tutorial.html files in each example folder
  2. # for every folder below examples
  3. for i in ../../../examples/[0123]*; do
  4. #for i in ../../../examples/01.*; do # if you want to run/update a single example use this loop
  5. echo NOW doing $i
  6. if ! [ -f "$i/main.cpp" ]; then
  7. continue
  8. fi
  9. # uses the main.cpp files to create some file to use as doxygen input
  10. sed -f tutorials.sed $i/main.cpp >single_tut.txt
  11. # echo tutorials.sed has run
  12. # create the html file
  13. doxygen doxygen_tutorial.cfg
  14. # echo doxygen has run
  15. # Fix the image links
  16. sed -f maketut.sed html/example???.html >tutorial.html
  17. # echo maketut.sed has run
  18. #move to example folder
  19. mv tutorial.html $i/tutorial.html
  20. # echo copied
  21. #cleanup
  22. rm -r html
  23. # echo cleaned
  24. done
  25. #cleanup
  26. rm single_tut.txt