memory/jemalloc/update.sh
author Morris Tseng <mtseng@mozilla.com>
Mon, 28 Jul 2014 01:21:00 +0200
changeset 218209 fc734b3bbb4215cdd3c9dd59cb39ba6e3b56c21f
parent 209410 2cdbb55e9ad969fdd7ae4cd327cca8f952ecc677
child 218884 8d9d227f75ee4d284ba2e2645886081006cac60c
permissions -rwxr-xr-x
Bug 987040 - Part 1: Implement mozbrowserselectionchange. r=vingtetun,ehsan,bugs. sr=bz

#!/bin/bash

set -e

cd `dirname $0`

source upstream.info

rm -rf src
git clone "$UPSTREAM_REPO" src
cd src
git checkout "$UPSTREAM_COMMIT"
autoconf
git describe --long --abbrev=40 > VERSION
rm -rf .git .gitignore autom4te.cache

patch -p1 < ../0001-Use-a-configure-test-to-detect-whether-to-use-a-cons.patch
patch -p1 < ../0002-Use-ULL-prefix-instead-of-LLU-for-unsigned-long-long.patch
patch -p1 < ../0003-Don-t-use-msvc_compat-s-C99-headers-with-MSVC-versio.patch
patch -p1 < ../0004-Try-to-use-__builtin_ffsl-if-ffsl-is-unavailable.patch
patch -p1 < ../0005-Check-for-__builtin_ffsl-before-ffsl.patch
patch -p1 < ../0006-Fix-clang-warnings.patch
patch -p1 < ../0007-Ensure-the-default-purgeable-zone-is-after-the-defau.patch
patch -p1 < ../0008-Allow-to-build-with-clang-cl.patch

cd ..
hg addremove -q src

echo "jemalloc has now been updated.  Don't forget to run hg commit!"