[Tizen] build fix for clang-10 (#331)
[platform/upstream/coreclr.git] / generateversionscript.awk
1 BEGIN {
2     print "V1.0 {";
3     print "    global:";
4
5
6     # Remove the CR character in case the sources are mapped from
7     # a Windows share and contain CRLF line endings
8     gsub(/\r/,"", $0);
9         
10     # Skip empty lines and comment lines starting with semicolon
11     if (NF && !match($0, /^[ \t]*;/))
12     {
13         # Only prefix the entries that start with "#"
14         if (match($0, /^#.*/))
15         {
16             gsub(/^#/,"", $0);
17             print "        "prefix $0 ";";
18         }
19         else
20         {
21             print "        "$0 ";";
22         }
23     }
24
25 END {
26     print "    local: *;"
27     print "};";
28 }