]> git.stg.codes - stg.git/blob - libs/smux/regen.sh
More std::jthread stuff.
[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 -f Makefile.am.sample
12 rm -f converter-sample.c
13 rm -f Makefile.am.asn1convert
14 rm -f Makefile.am.libasncodec
15 rm -f converter-example.mk
16 rm -f converter-example.c