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