diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-01-07 21:27:13 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-01-07 21:27:14 +0200 |
commit | 4902b2ad3dc07b722fd954ec8c13fd13dabc562e (patch) | |
tree | 259716b229458bb627e0c46d6488febf5b7e06ab | |
parent | Merge pull request #5007 (diff) | |
parent | blocks: fix checkpoint code generation on OpenBSD (diff) | |
download | monero-4902b2ad3dc07b722fd954ec8c13fd13dabc562e.tar.xz |
Merge pull request #5016
434a147b blocks: fix checkpoint code generation on OpenBSD (moneromooo-monero)
-rw-r--r-- | src/blocks/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blocks/CMakeLists.txt b/src/blocks/CMakeLists.txt index 30d85adbf..ff48af6dc 100644 --- a/src/blocks/CMakeLists.txt +++ b/src/blocks/CMakeLists.txt @@ -39,7 +39,7 @@ foreach(BLOB_NAME checkpoints testnet_blocks stagenet_blocks) cd ${CMAKE_CURRENT_BINARY_DIR} && echo "'#include\t<stddef.h>'" > ${OUTPUT_C_SOURCE} && echo "'const\tunsigned\tchar\t${BLOB_NAME}[]={'" >> ${OUTPUT_C_SOURCE} && - od -v -An -tu1 ${CMAKE_CURRENT_SOURCE_DIR}/${INPUT_DAT_FILE} | sed -e "'s/[0-9]\\{1,\\}/&,/g'" -e "'$$s/.$$//'" >> ${OUTPUT_C_SOURCE} && + od -v -An -tx1 ${CMAKE_CURRENT_SOURCE_DIR}/${INPUT_DAT_FILE} | sed -e "'s/[0-9a-fA-F]\\{1,\\}/0x&,/g'" -e "'$$s/.$$//'" >> ${OUTPUT_C_SOURCE} && echo "'};'" >> ${OUTPUT_C_SOURCE} && echo "'const\tsize_t\t${BLOB_NAME}_len\t=\tsizeof(${BLOB_NAME});'" >> ${OUTPUT_C_SOURCE} ) |