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