memory/jemalloc/update.sh

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rwxr-xr-x

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 #!/bin/bash
     3 set -e
     5 cd `dirname $0`
     7 source upstream.info
     9 rm -rf src
    10 git clone "$UPSTREAM_REPO" src
    11 cd src
    12 git checkout "$UPSTREAM_COMMIT"
    13 autoconf
    14 git describe --long --abbrev=40 > VERSION
    15 rm -rf .git .gitignore autom4te.cache
    16 cd ..
    17 hg addremove -q src
    19 echo "jemalloc has now been updated.  Don't forget to run hg commit!"

mercurial