#!/bin/sh
VERSION=2023.07
tar --files-from=file.list -xjvf ../u-boot-$VERSION.tar.bz2
mv u-boot-$VERSION u-boot-$VERSION-orig
cp -rf ./u-boot-$VERSION-new ./u-boot-$VERSION
diff --unified -Nr u-boot-$VERSION-orig u-boot-$VERSION > u-boot-$VERSION-version.patch
mv u-boot-$VERSION-version.patch ../patches
rm -rf ./u-boot-$VERSION
rm -rf ./u-boot-$VERSION-orig