author Mike Hommey <>
Wed, 01 Jun 2016 07:22:49 +0900
changeset 340685 1d2c46c8c7c764daf8638663524033dfe330cf0a
parent 325851 d8190cbce7b0b188ec678da1a1ec1a190c5da636
child 342694 4e6dd91cd5823834a7da0394367609a1640dfb11
permissions -rwxr-xr-x
Bug 1244446 - Run automation build steps before postflight_all. r=gps,r=ted Killing the sccache background daemon is part of postflight_all, but in the current setup, postflight_all happens at the end of a "normal" build, but we run automation build steps after that. What happens then is that more compilations happen (gtests), which start sccache again, but there's nothing to kill sccache again once this is all done. Now that the OSX universal builds postflight is gone, it is not necessary for postflight_all to happen before the automation build steps. So ensure postflight_all scripts happen last. The downside of this change is that this now prevents sccache.log from being uploaded, but we should probably send processed data to the graph server instead.


set -v -e -x

if [ $# -lt 1 ]; then
  echo "Usage: /path/to/libjpeg-turbo/ [tag]"
  exit 1

srcdir=`realpath $(dirname $0)`
rm -rf $srcdir/libjpeg


(cd $repo; git archive --prefix=media/libjpeg/ $tag) | (cd $srcdir/..; tar xf -)

cd $srcdir/libjpeg
cp win/ simd/

revert_files="jconfig.h jconfigint.h MOZCHANGES mozilla.diff simd/"
if test -d ${topsrcdir}/.hg; then
    hg revert --no-backup $revert_files
elif test -d ${topsrcdir}/.git; then
    git checkout HEAD -- $revert_files

patch -p0 -i mozilla.diff
patch -p0 -i 1050342.diff