blob: c4f040982f7a93397caa394c00a8432fca5f9bd9 (
plain) (
tree)
|
|
#!/usr/bin/perl
# used to convert version.m4 to simple
# definition format
while (<STDIN>) {
chomp;
if (/^\s*$/) {
print "\n";
} elsif (/^define\((\w+),\[(.*?)\]\)/) {
print "define $1 \"$2\"\n";
} elsif (/^dnl(.*)$/) {
print "#$1\n";
}
}
|