updating hooks

fix hex gen from relative invocation path
This commit is contained in:
brent saner
2024-07-07 23:44:13 -04:00
parent 82220d5107
commit c329fc916e
4 changed files with 25 additions and 7 deletions

16
.githooks/pre-commit/02-hexgen Executable file
View File

@@ -0,0 +1,16 @@
#!/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"