Fixed awk

This commit is contained in:
Vysheng 2014-08-22 16:18:15 +04:00
parent 961fe6e861
commit 4628229398

View File

@ -22,7 +22,7 @@ BEGIN {
}
// {
if (split ($1, a, "#") == 2) {
gsub (/[A-Z]/, "_&", a[1]);
gsub (/[[:upper:]]/, "_&", a[1]);
gsub (/[.]/, "_", a[1]);
if (a[2] in h) {
print "ERROR: Duplicate magic " a[2] " for define " a[1] " and " h[a[2]] >"/dev/stderr/"