diff options
Diffstat (limited to 'experiments/conv/bin2h')
-rwxr-xr-x | experiments/conv/bin2h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/experiments/conv/bin2h b/experiments/conv/bin2h new file mode 100755 index 0000000..9123848 --- /dev/null +++ b/experiments/conv/bin2h @@ -0,0 +1,11 @@ +#!/bin/sh +input_file="$1" +cat <<EOF +#pragma once +const unsigned int VSR_PC_MSG_DATA_LEN = $(wc -c < "$input_file"); +const unsigned char VSR_PC_MSG_DATA[] = { +$(xxd -include < "$input_file") +}; + +EOF + |