libcm is a C development framework with an emphasis on audio signal processing applications.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

gen_doc.sh 1.1KB

1234567891011121314151617181920212223242526272829303132
  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;};' temp1.h > temp2.h
  14. # Remove the first two lines.
  15. tail -n +3 temp2.h > ../src/cmVectOpsDocOut.h
  16. rm -f temp.h
  17. rm -f temp1.h
  18. rm -f temp2.h
  19. # Run the doc generator
  20. # Note that we must use a full path to the 'cdg_cfg.json' file because it's
  21. # absolute location must be determined to locate the full path to the source files.
  22. ~/src/dc/build/linux/debug/bin/cdg -c ~/src/libcm/doc/cdg_cfg.json -o ~/temp/doc2
  23. #
  24. scp ~/temp/doc2/* wf:webapps/currawongproject/htdocs/static/doc/libcm