diff --git a/asn1/generate.txt b/asn1/generate.txt index 3192b09..c53dd8b 100644 --- a/asn1/generate.txt +++ b/asn1/generate.txt @@ -1 +1,3 @@ -asn1c -fwide-types -fcompound-names -fincludes-quoted -no-gen-example asn1/PKIXExplicit88.asn asn1/PKIXImplicit88.asn asn1/rsp.asn +asn1c -fwide-types -fcompound-names -fincludes-quoted -no-gen-example ../../../asn1/PKIXExplicit88.asn ../../../asn1/PKIXImplicit88.asn ../../../asn1/rsp.asn + +find "." -type f \( -name "*.c" -o -name "*.h" \) | while read -r file; do for header in $(find "." -type f -name "*.h"); do header_file=$(basename "$header"); sed -i "/#include <${header_file}>/c\#include \"${header_file}\"" "$file"; done; done