tor-browser

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

patch-include-headers.sh (375B)


      1 #!/bin/sh
      2 for fn in `find . -name '*.[hc]'`
      3 do
      4    gawk '
      5 { if (match($0, /( *# *include +)<(Zy.*ExportConfig.h|Zy(dis|core).*\.h)>/, res)) {
      6    print res[1] "\"zydis/" res[2] "\""
      7    next
      8  } else if (match($0, /( *# *include +)<(Generated\/.*\.inc)>/, res)) {
      9    print res[1] "\"zydis/Zydis/" res[2] "\""
     10    next
     11  }
     12  print $0 }' $fn > $fn.bak
     13    mv $fn.bak $fn
     14 done