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