WireProto/.githooks/pre-commit/02-hexgen

17 lines
230 B
Plaintext
Raw Normal View History

#!/bin/bash
subdir='docs/data'
datdir="${PWD}/${subdir}"
${datdir}/parse.py
for t in 'simple' 'multi';
do
for r in 'request' 'response';
do
git add ${subdir}/${r}.${t}.hex
done
done
echo "Regenerated hex representations"