6 echo "Usage: update-libjpeg.sh /path/to/libjpeg-turbo/ [tag]"
10 srcdir
=`realpath $(dirname $0)`
11 topsrcdir
=${srcdir}/..
12 rm -rf $srcdir/libjpeg
17 (cd $repo; git archive
--prefix=media
/libjpeg
/ $tag) |
(cd $srcdir/..
; tar xf
-)
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