spicetools/easrv/responses_raw/update_responses.sh

12 lines
200 B
Bash
Raw Normal View History

2024-08-28 15:10:34 +00:00
#!/usr/bin/env bash
set -euxo pipefail
cd -P "$( dirname "$(readlink -f "$0")" )"
mkdir -p ../responses
for file in *.bin
do
xxd -C -i "${file}" > "../responses/$(basename "${file}" .bin).h"
done