#!/bin/sh
VERSION=5.15.8
mkdir -p qt-everywhere-src-$VERSION-orig
cp -rf ./qt-everywhere-src-$VERSION-new ./qt-everywhere-src-$VERSION
diff --unified -Nr qt-everywhere-src-$VERSION-orig qt-everywhere-src-$VERSION > qt5-$VERSION-dav1d.patch
mv qt5-$VERSION-dav1d.patch ../patches
rm -rf ./qt-everywhere-src-$VERSION
rm -rf ./qt-everywhere-src-$VERSION-orig