]> git.stg.codes - stg.git/blob - libs/smux/regen.sh
2624ffd11ef191518186109d5bbafb0826bc589c
[stg.git] / libs / smux / regen.sh
1 #!/bin/sh
2
3 set -euo pipefail
4
5 ASN1C=${ASN1C:-"/usr/bin/asn1c"}
6
7 ASN1C_FLAGS="${ASN1C_FLAGS:-""} -fcompound-names -fwide-types"
8
9 ${ASN1C} ${ASN1C_FLAGS} RFC1213-MIB.asn1 RFC1155-SMI.asn1 RFC1157-SNMP.asn1 SMUX.asn1
10 mv *.h include/stg/
11 rm Makefile.am.sample
12 rm converter-sample.c