tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

exports.awk (274B)


      1 #!/bin/awk -f
      2 
      3 BEGIN {
      4  n_exports = 0;
      5 }
      6 
      7 {
      8  if ($0 ~ /^exports.*=/) {
      9    exports[n_exports] = substr($3, 0, length($3) - 1);
     10    n_exports++;
     11  } else {
     12    print;
     13  }
     14 }
     15 
     16 END {
     17  for (i = 0; i < n_exports; i++) {
     18    print "this." exports[i] " = " exports[i] ";";
     19  }
     20 }