build: Remove unused release scripts for talloc
[kai/samba-autobuild/.git] / lib / tdb / script / mksyms.awk
index a30bea4d340ba7b8ad2d4e8d8c391a25be68d735..ca14da0f2177bf2005a3e5835d9e6679c813669f 100644 (file)
@@ -28,7 +28,7 @@ END {
                current_file=FILENAME
        }
        if (inheader) {
-               if (match($0,"[)][ \t]*[;][ \t]*$")) {
+               if (match($0,"[)][^()]*[;][ \t]*$")) {
                        inheader = 0;
                }
                next;
@@ -57,10 +57,10 @@ END {
        }
 }
 
-/[_A-Za-z0-9]+[ \t]*[(].*[)][ \t]*;[ \t]*$/ {
+/[_A-Za-z0-9]+[ \t]*[(].*[)][^()]*;[ \t]*$/ {
        sub(/[(].*$/, "");
        gsub(/[^ \t]+[ \t]+/, "");
-       gsub(/^[*]/, "");
+       gsub(/^[*]+/, "");
        printf "\t\t%s;\n",$0;
        next;
 }