#!/bin/sh
VERSION=1.12.0
tar --files-from=file.list -xJvf ../libvpx-$VERSION.tar.xz
mv libvpx-$VERSION libvpx-$VERSION-orig
cp -rf ./libvpx-$VERSION-new ./libvpx-$VERSION
diff --unified -Nr libvpx-$VERSION-orig libvpx-$VERSION > libvpx-$VERSION-toolchain.patch
mv libvpx-$VERSION-toolchain.patch ../patches
rm -rf ./libvpx-$VERSION
rm -rf ./libvpx-$VERSION-orig