mirror of https://gerrit.osmocom.org/asn1c
Include the module name in the extracted ASN.1 file.
This commit is contained in:
parent
b40ec41655
commit
d9d36f8e41
|
@ -44,14 +44,15 @@ while(<>) {
|
||||||
$inasn = 1;
|
$inasn = 1;
|
||||||
} elsif(/^[ \t]*([A-Z][A-Za-z0-9-]*).*{[ \t]*iso/
|
} elsif(/^[ \t]*([A-Z][A-Za-z0-9-]*).*{[ \t]*iso/
|
||||||
|| /^[ \t]*{[ \t]*iso/) {
|
|| /^[ \t]*{[ \t]*iso/) {
|
||||||
|
my @a = ($_);
|
||||||
$modName = $1;
|
$modName = $1;
|
||||||
unless(length($modName)) {
|
unless(length($modName)) {
|
||||||
next unless $prevLine =~
|
next unless $prevLine =~
|
||||||
/^[ \t]*([A-Z][A-Za-z0-9-]*)[ \t]*$/;
|
/^[ \t]*([A-Z][A-Za-z0-9-]*)[ \t]*$/;
|
||||||
$modName = $1;
|
$modName = $1;
|
||||||
|
unshift(@a, $prevLine);
|
||||||
}
|
}
|
||||||
$currentFname = $rfcid . $modName . ".asn1";
|
$currentFname = $rfcid . $modName . ".asn1";
|
||||||
my @a = ($_);
|
|
||||||
my $i;
|
my $i;
|
||||||
for($i = 0; $i < 8; $i++) {
|
for($i = 0; $i < 8; $i++) {
|
||||||
$_ = <>;
|
$_ = <>;
|
||||||
|
|
Loading…
Reference in New Issue