updating hooks
fix hex gen from relative invocation path
This commit is contained in:
16
.githooks/pre-commit/02-hexgen
Executable file
16
.githooks/pre-commit/02-hexgen
Executable 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"
|
||||
Reference in New Issue
Block a user