tor-browser

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

add_build_location_patches.sh (1570B)


      1 #!/bin/bash
      2 
      3 # After this point:
      4 # * eE: All commands should succeed.
      5 # * u: All variables should be defined before use.
      6 # * o pipefail: All stages of all pipes should succeed.
      7 set -eEuo pipefail
      8 
      9 ack -l "\"//build/" | xargs sed -i.bak -E 's/\"\/\/build\//\"\/\/chromium\/build\//'
     10 ack -l "\"//build:" | xargs sed -i.bak -E 's/\"\/\/build:/\"\/\/chromium\/build:/'
     11 find . -name "*.bak" | xargs rm
     12 git restore \
     13  android/pylib/utils/gold_utils.py \
     14  args/README.txt \
     15  args/chromeos/README.md \
     16  gn_helpers_unittest.py \
     17  locale_tool.py \
     18  toolchain/linux/unbundle/README.md
     19 
     20 echo $"
     21 Bug 1921707 - point to new build directory location in third_party/chromium/build r=ng,glandium
     22 
     23 Ran:
     24 ack -l \"\\\"//build/\" third_party/chromium/build | xargs sed -i.bak -E 's/\\\"\/\/build\//\\\"\/\/chromium\/build\//'
     25 ack -l \"\\\"//build:\" third_party/chromium/build | xargs sed -i.bak -E 's/\\\"\/\/build:/\\\"\/\/chromium\/build:/'
     26 find third_party -name \"*.bak\" | xargs rm
     27 hg revert \\
     28  third_party/chromium/build/android/pylib/utils/gold_utils.py \\
     29  third_party/chromium/build/args/README.txt \\
     30  third_party/chromium/build/args/chromeos/README.md \\
     31  third_party/chromium/build/gn_helpers_unittest.py \\
     32  third_party/chromium/build/locale_tool.py \\
     33  third_party/chromium/build/toolchain/linux/unbundle/README.md
     34 
     35 Differential Revision: https://phabricator.services.mozilla.com/D224542
     36 Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/6b855a2bf6b1f3feb9c6558a9357fed8e43c5b99
     37 
     38 " > $TMP_DIR/commit_msg.txt
     39 
     40 git commit -F $TMP_DIR/commit_msg.txt -a