libcm is a C development framework with an emphasis on audio signal processing applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gen_doc.sh 846B

12345678910111213141516171819202122232425262728
  1. # switches: -E : Stop after preprocess
  2. # -C : Do not strip comments.
  3. # -P : Do not generate line markers
  4. # -traditional-cpp : preserve white space
  5. # run the pre-processor to generate the vector ops documentation
  6. gcc -E -C -P -traditional-cpp -o temp.h ../src/vop/cmVectOpsDoc.h
  7. # The --traditional-cpp switch prevents the 'stringizing'
  8. # C pre-proc direcive from working this leaves '##_' tokens
  9. # which need to be replaced by '_'
  10. # replace '_##` with '_'
  11. sed 's/\(_##\)/_/g' temp.h > temp1.h
  12. # Remove header text generated by gcc.
  13. # sed '/\/\*/,/\/\/end_cut/{#!d}' temp.h
  14. sed '/\/\*/,/\/\/end_cut/{//!d;};' temp1.h > temp2.h
  15. # Remove the first two lines.
  16. tail -n +3 temp2.h > ../src/cmVectOpsDocOut.h
  17. rm -f temp.h
  18. rm -f temp1.h
  19. rm -f temp2.h
  20. # Run the doc generator
  21. #cdg -c cdg_cfg.json -o ~/temp/doc_libcm