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