tor-browser

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

build.sh (537B)


      1 #!/usr/bin/env bash
      2 
      3 set -v -e -x
      4 
      5 test -v VCS_PATH
      6 
      7 # builds write to the source dir (and its parent), so move the source trees to
      8 # our workspace from the (cached) checkout dir
      9 cp -a "${VCS_PATH}/nss" "${VCS_PATH}/nspr" .
     10 
     11 if [[ "$USE_64" == 1 ]]; then
     12    m=x64
     13 else
     14    m=x86
     15 fi
     16 source "$(dirname "$0")/setup.sh"
     17 
     18 pushd nspr
     19 hg revert --all
     20 if [[ -f ../nss/nspr.patch && "$ALLOW_NSPR_PATCH" == "1" ]]; then
     21  cat ../nss/nspr.patch | patch -p1
     22 fi
     23 popd
     24 
     25 # Build.
     26 mozmake -C nss nss_build_all
     27 
     28 # Package.
     29 7z a public/build/dist.7z dist