Bug 1820641: Make a test that calls window.restore handle zoomed windows. r=mstange
[gecko.git] / media / update-libjpeg.sh
blob6a1b377becea8b84f7909df3388a2c2deccddfb6
1 #!/bin/sh
3 set -v -e -x
5 if [ $# -lt 1 ]; then
6 echo "Usage: update-libjpeg.sh /path/to/libjpeg-turbo/ [tag]"
7 exit 1
8 fi
10 srcdir=`realpath $(dirname $0)`
11 topsrcdir=${srcdir}/..
12 rm -rf $srcdir/libjpeg
14 repo=$1
15 tag=${2-HEAD}
17 (cd $repo; git archive --prefix=media/libjpeg/ $tag) | (cd $srcdir/..; tar xf -)
19 cd $srcdir/libjpeg
21 revert_files="jconfig.h jconfigint.h moz.build MOZCHANGES mozilla.diff"
22 if test -d ${topsrcdir}/.hg; then
23 hg revert --no-backup $revert_files
24 elif test -e ${topsrcdir}/.git; then
25 git checkout HEAD -- $revert_files
28 patch -p0 -i mozilla.diff