Fix SpanHelpers.ClearWithoutReferences alignment detection (#18222)
[platform/upstream/coreclr.git] / generateversionscript.awk
index 2aa1f4f..226c6a5 100644 (file)
@@ -6,7 +6,12 @@ BEGIN {
        # Remove the CR character in case the sources are mapped from
        # a Windows share and contain CRLF line endings
        gsub(/\r/,"", $0);
-       print "        "  $0 ";";
+       
+       # Skip empty lines and comment lines starting with semicolon
+       if (NF && !match($0, /^[ \t]*;/))
+       {
+               print "        "  $0 ";";
+       }
 } 
 END {
        print "    local: *;"