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