media/update-libjpeg.sh
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Mon, 22 Feb 2016 20:52:33 -0800
changeset 325574 f177f8ec083efc5ddb5d3c854ae7bb383b1b6a45
parent 299801 8543b8749c4e20418ea17649088324e264ff4d18
child 325851 d8190cbce7b0b188ec678da1a1ec1a190c5da636
permissions -rwxr-xr-x
Bumping gaia.json for 2 gaia revision(s) a=gaia-bump ======== https://hg.mozilla.org/integration/gaia-central/rev/8c0f20540765 Author: Ricky Chien <rickychien@users.noreply.github.com> Desc: Merge pull request #34079 from rickychien/show-hint-after-load Bug 1250032 - [Marketplace] Hint should show after the app finish loading r=@luke-chang ======== https://hg.mozilla.org/integration/gaia-central/rev/8dd0b87892a1 Author: Ricky Chien <ricky060709@gmail.com> Desc: Bug 1250032 - [Marketplace] Hint should show after the app finish loading

#!/bin/sh

set -v -e -x

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

srcdir=`realpath $(dirname $0)`
topsrcdir=${srcdir}/..
rm -rf $srcdir/libjpeg

repo=$1
tag=${2-HEAD}

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

cd $srcdir/libjpeg
cp win/jsimdcfg.inc simd/

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

patch -p0 -i mozilla.diff