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