#!/bin/bash # # This script generates the required files for supporting the debug # channels used throught the code. # The generated files are # include/debugdefs.h # include/debug.h # The script must be run in the root directory of the project. # # Dimitrie O. Paun # DEBUG_H="include/debug.h" DEBUG_DEFS_H="include/debugdefs.h" DEBUG_CHANNELS="$( tools/find_debug_channels )" DEBUG_CLASSES="fixme err warn trace" { cat < $DEBUG_H # Now, on the last step, we proceed to construct # the definitions to be used by the main function. # These will be stored in include/debugdefs.h { cat < $DEBUG_DEFS_H