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