michael@0: #!/bin/bash michael@0: michael@0: set -e michael@0: michael@0: cd `dirname $0` michael@0: michael@0: source upstream.info michael@0: michael@0: rm -rf src michael@0: git clone "$UPSTREAM_REPO" src michael@0: cd src michael@0: git checkout "$UPSTREAM_COMMIT" michael@0: autoconf michael@0: git describe --long --abbrev=40 > VERSION michael@0: rm -rf .git .gitignore autom4te.cache michael@0: cd .. michael@0: hg addremove -q src michael@0: michael@0: echo "jemalloc has now been updated. Don't forget to run hg commit!"