#!/bin/sh
VERSION=1.2.5
tar --files-from=file.list -xjvf ../rpcbind-$VERSION.tar.bz2
mv rpcbind-$VERSION rpcbind-$VERSION-orig
cp -rf ./rpcbind-$VERSION-new ./rpcbind-$VERSION
diff --unified -Nr rpcbind-$VERSION-orig rpcbind-$VERSION > rpcbind-$VERSION-man8.patch
mv rpcbind-$VERSION-man8.patch ../patches
rm -rf ./rpcbind-$VERSION
rm -rf ./rpcbind-$VERSION-orig