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