diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /media/update-libjpeg.sh | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/update-libjpeg.sh')
-rwxr-xr-x | media/update-libjpeg.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/media/update-libjpeg.sh b/media/update-libjpeg.sh new file mode 100755 index 000000000..68a8e988a --- /dev/null +++ b/media/update-libjpeg.sh @@ -0,0 +1,30 @@ +#!/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="1050342.diff jconfig.h jconfigint.h moz.build 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 +patch -p0 -i 1050342.diff |