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