Skip to content

Commit

Permalink
DDR: omit blank lines in annt files
Browse files Browse the repository at this point in the history
Remove CR and trailing whitespace.

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
  • Loading branch information
keithc-ca committed Mar 15, 2021
1 parent 2c0d139 commit da2df35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/ddr/DDRSetStub.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function(process_source_files src_files)
add_custom_command(
OUTPUT "${annt_file}"
DEPENDS "${stub_file}"
COMMAND ${pp_command} | awk "/^\$/ { next } /^DDRFILE_BEGIN /,/^DDRFILE_END / { print \"@\" $0 }" > ${annt_file}
COMMAND ${pp_command} | awk "/^DDRFILE_BEGIN /,/^DDRFILE_END / { gsub(/[\\t\\r ]*$/, \"\"); if (NF != 0) { print \"@\" $0 } }" > ${annt_file}
VERBATIM
)
endforeach()
Expand Down

0 comments on commit da2df35

Please sign in to comment.