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