Changeset View
Changeset View
Standalone View
Standalone View
src/bench/data/convert-raw-to-header.sh
- This file was added.
Property | Old Value | New Value |
---|---|---|
File Mode | null | 100755 |
#!/usr/bin/env bash | |||||
INPUT_BASENAME=$(basename ${1}) | |||||
{ | |||||
echo "static unsigned const char ${INPUT_BASENAME%.*}[] = {" && \ | |||||
hexdump -v -e '8/1 "0x%02x, "' -e '"\n"' ${1} | sed -e 's/0x ,//g' && \ | |||||
deadalnix: There are no dependency on hexdump. I don't understand why the approach taken by… | |||||
FabienAuthorUnsubmitted Done Inline ActionsThe dependency exists as long as autotools is still supported, the script is just the direct translation of the Makefile.bench.include scipt (only special autotools variables names are adapted). Fabien: The dependency exists as long as autotools is still supported, the script is just the direct… | |||||
echo "};"; \ | |||||
} |
There are no dependency on hexdump. I don't understand why the approach taken by src/test/data/generate_header.py is not preferable.