#!/bin/sh
VERSION=1.18.2
tar --files-from=file.list -xJvf ../xdg-desktop-portal-$VERSION.tar.xz
mv xdg-desktop-portal-$VERSION xdg-desktop-portal-$VERSION-orig
cp -rf ./xdg-desktop-portal-$VERSION-new ./xdg-desktop-portal-$VERSION
diff --unified -Nr xdg-desktop-portal-$VERSION-orig xdg-desktop-portal-$VERSION > xdg-desktop-portal-$VERSION-bwrap-cross.patch
mv xdg-desktop-portal-$VERSION-bwrap-cross.patch ../patches
rm -rf ./xdg-desktop-portal-$VERSION
rm -rf ./xdg-desktop-portal-$VERSION-orig