#!/bin/sh
VERSION=1.2.1
tar --files-from=file.list -xzvf ../libutempter-$VERSION.tar.gz
mv libutempter-$VERSION libutempter-$VERSION-orig
cp -rf ./libutempter-$VERSION-new ./libutempter-$VERSION
diff --unified -Nr libutempter-$VERSION-orig libutempter-$VERSION > libutempter-$VERSION.patch
mv libutempter-$VERSION.patch ../patches
rm -rf ./libutempter-$VERSION
rm -rf ./libutempter-$VERSION-orig