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