if [ -f ${currentWorkDir}/patches/files/revert_DRI2_swap.patch.gz ]; then zcat ${currentWorkDir}/patches/files/revert_DRI2_swap.patch.gz | patch -p1 --verbose fi if [ -f ${currentWorkDir}/patches/files/add_new_struct_compatible_dri2proto.patch.gz ]; then zcat ${currentWorkDir}/patches/files/add_new_struct_compatible_dri2proto.patch.gz | \ patch -p1 --verbose fi if [ -f ${currentWorkDir}/patches/files/attachment_DRI2BufferHiz.patch.gz ]; then zcat ${currentWorkDir}/patches/files/attachment_DRI2BufferHiz.patch.gz | patch -p1 --verbose fi