X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/20d4dd0571e75d254444acf755a01b48a691c7c2..4271ab433cd55bbd2612292bcf39e4dc3d7274f1:/libs/smux/regen.sh diff --git a/libs/smux/regen.sh b/libs/smux/regen.sh new file mode 100755 index 00000000..2624ffd1 --- /dev/null +++ b/libs/smux/regen.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +set -euo pipefail + +ASN1C=${ASN1C:-"/usr/bin/asn1c"} + +ASN1C_FLAGS="${ASN1C_FLAGS:-""} -fcompound-names -fwide-types" + +${ASN1C} ${ASN1C_FLAGS} RFC1213-MIB.asn1 RFC1155-SMI.asn1 RFC1157-SNMP.asn1 SMUX.asn1 +mv *.h include/stg/ +rm Makefile.am.sample +rm converter-sample.c