]> git.stg.codes - stg.git/blob - libs/smux/regen.sh
Add clang to compilers on GitHub.
[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