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