tar xzf zlib-1.2.3.tar.gz --exclude='[*?:<>\|]' mv zlib-1.2.3 zlib || true File to patch: touch zlib patch -p 0 < Patches/zlib.patch Looks like a unified context diff. File to patch: No file found -- skip this patch? [no]