a20ad4
#!/usr/bin/awk -f
a20ad4
a20ad4
/is not set/ {
a20ad4
                split ($0, a, "#");
a20ad4
                split(a[2], b);
a20ad4
                if (NR==FNR) {
a20ad4
                        configs[b[1]]="is not set";
a20ad4
                } else {
a20ad4
                        if (configs[b[1]] != "" && configs[b[1]] != "is not set")
a20ad4
                                print "Found # "b[1] " is not set, after generation, had " b[1] " " configs[b[1]] " in Fedora tree";
a20ad4
                }
a20ad4
}
a20ad4
a20ad4
/=/     {
a20ad4
                split ($0, a, "=");
a20ad4
                if (NR==FNR) {
a20ad4
                        configs[a[1]]=a[2];
a20ad4
                } else {
a20ad4
                        if (configs[a[1]] != "" && configs[a[1]] != a[2])
a20ad4
                                print "Found "a[1]"="configs[a[1]]"  after generation, had " a[1]"="a[2]" in Fedora tree";
a20ad4
                }
a20ad4
}