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