tor-browser

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

build_nspr.sh (464B)


      1 #!/usr/bin/env bash
      2 
      3 set -v -e -x
      4 
      5 source $(dirname $0)/tools.sh
      6 
      7 # Clone NSPR if needed.
      8 hg_clone https://hg.mozilla.org/projects/nspr nspr default
      9 
     10 pushd nspr
     11 hg revert --all
     12 if [[ -f ../nss/nspr.patch && "$ALLOW_NSPR_PATCH" == "1" ]]; then
     13  cat ../nss/nspr.patch | patch -p1
     14 fi
     15 popd
     16 
     17 # Build.
     18 rm -rf dist
     19 make -C nss build_nspr
     20 
     21 # Package.
     22 test -d artifacts || mkdir artifacts
     23 rm -rf dist-nspr
     24 mv dist dist-nspr
     25 tar cvfjh artifacts/dist-nspr.tar.bz2 dist-nspr