2012-06-07 01:41:58 -07:00
|
|
|
#!/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
|
2014-05-22 15:26:40 -07:00
|
|
|
|
|
|
|
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
|
2014-05-30 17:54:23 -07:00
|
|
|
patch -p1 < ../0003-Don-t-use-msvc_compat-s-C99-headers-with-MSVC-versio.patch
|
2014-06-05 16:15:58 -07:00
|
|
|
patch -p1 < ../0004-Try-to-use-__builtin_ffsl-if-ffsl-is-unavailable.patch
|
2014-06-05 16:17:02 -07:00
|
|
|
patch -p1 < ../0005-Check-for-__builtin_ffsl-before-ffsl.patch
|
2014-05-28 19:02:11 -07:00
|
|
|
patch -p1 < ../0006-Fix-clang-warnings.patch
|
2014-06-10 19:07:27 -07:00
|
|
|
patch -p1 < ../0007-Ensure-the-default-purgeable-zone-is-after-the-defau.patch
|
2014-06-12 16:44:19 -07:00
|
|
|
patch -p1 < ../0008-Allow-to-build-with-clang-cl.patch
|
2014-07-31 23:55:56 -07:00
|
|
|
patch -p1 < ../0009-Remove-srcroot-from-cfghdrs_in-cfgoutputs_in-and-cfg.patch
|
2014-05-22 15:26:40 -07:00
|
|
|
|
2012-06-07 01:41:58 -07:00
|
|
|
cd ..
|
|
|
|
hg addremove -q src
|
|
|
|
|
|
|
|
echo "jemalloc has now been updated. Don't forget to run hg commit!"
|