miniroon

Simplistic macaroon-based authorization for Unix systems
git clone https://ccx.te2000.cz/git/miniroon
Log | Files | Refs

genhash (213B)


      1 #!/bin/sh -xe
      2 base=$1
      3 shift
      4 triehash --multi-byte=0 --code="${base}.c" --header="${base}.h" \
      5 	--enum-name="${base}_key" \
      6 	--function-name="${base}_hash" \
      7 	"$@" &&
      8 printf '\n// {IMP} %s\n' "$base.c" >>"$base.h"