blob: 9123848c2a2a1cf70d423b20b0767cbe7eaefd6c (
plain)
1
2
3
4
5
6
7
8
9
10
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
|