Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 253203e6 authored by hhakim's avatar hhakim
Browse files

Filterout doxygen blocks from m-files of classes too and ensure it happens after doxygen doc gen.

parent b525332f
No related merge requests found
Pipeline #834155 skipped
......@@ -8,5 +8,5 @@
[[ ! -r "$1" ]] && echo "$1 is not readable/existing as a file." >&2 && exit 0 # not an error, just skipping
#sed -i '/%=\{5,\}/,/%=\{5,\}/d' $1 # macos default sed can't do this (it gives an error:sed: 1: command c expects \ followed by text
sed -e '/%=\{5,\}/,/%=\{5,\}/d' $1 > ${1}_tmp
sed -e '/%\s\{0,\}=\{5,\}/,/%\s\{0,\}=\{5,\}/d' $1 > ${1}_tmp
mv "${1}_tmp" "$1"
......@@ -80,6 +80,9 @@ foreach(MATFAUST_FILE IN LISTS FAUST_MATLAB_MATFAUST_FILE_LIST)
#execute_process(COMMAND ${PROJECT_SOURCE_DIR}/gen_doc/gen_matlab_inline_doc_from_doxy_blocks.sh ${FAUST_MATLAB_NAMESPACE_SRC_DIR}/${MATFAUST_FILE} ${FAUST_MATLAB_NAMESPACE_BIN_DIR}/${MATFAUST_FILE} ERROR_QUIET)
#TODO: copy if error (fallback solution)
#configure_file(${FAUST_MATLAB_NAMESPACE_SRC_DIR}/${MATFAUST_FILE} ${FAUST_MATLAB_NAMESPACE_BIN_DIR}/${MATFAUST_FILE} COPYONLY)
add_custom_target(FILTER_OUT_MATLAB_DOXYBLOCKS_${MATFAUST_SHORT_FILE} ALL
COMMAND ${PROJECT_SOURCE_DIR}/gen_doc/filterout_matlab_doxy_blocks.sh ${FAUST_MATLAB_NAMESPACE_BIN_DIR}/${MATFAUST_FILE} COMMENT "Removing doxygen blocks from class file ${MATFAUST_FILE}" DEPENDS doc)
else()
message(STATUS "matfaust function file: " ${MATFAUST_FILE})
# just copy the .m
......@@ -96,9 +99,9 @@ foreach(MATFAUST_FILE IN LISTS FAUST_MATLAB_MATFAUST_FILE_LIST)
COMMENT "Generating matfaust inline doc for ${MATFAUST_FILE}")
add_custom_target(FILTER_OUT_MATLAB_DOXYBLOCKS_${MATFAUST_SHORT_FILE} ALL
COMMAND ${PROJECT_SOURCE_DIR}/gen_doc/filterout_matlab_doxy_blocks.sh ${FAUST_MATLAB_NAMESPACE_BIN_DIR}/${MATFAUST_FILE} DEPENDS doc COMMENT "Removing doxygen blocks from function file.")
COMMAND ${PROJECT_SOURCE_DIR}/gen_doc/filterout_matlab_doxy_blocks.sh ${FAUST_MATLAB_NAMESPACE_BIN_DIR}/${MATFAUST_FILE} COMMENT "Removing doxygen blocks from function file ${MATFAUST_FILE}." DEPENDS doc)
endif()
add_custom_target(GEN_INLINE_DOC_${MATFAUST_SHORT_FILE} ALL DEPENDS ${FAUST_MATLAB_NAMESPACE_BIN_DIR}/${MATFAUST_FILE})
add_custom_target(GEN_INLINE_DOC_${MATFAUST_SHORT_FILE} ALL DEPENDS ${FAUST_MATLAB_NAMESPACE_BIN_DIR}/${MATFAUST_FILE})
add_dependencies(PREPARE_MATFAUST_FOR_DOXYDOC GEN_INLINE_DOC_${MATFAUST_SHORT_FILE})
endforeach()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment