#!/bin/sh set -ex cd "$(dirname "$0")" patch -p1 <"postgis-common-${PG_VERSION}.patch" trap 'echo Cleaning up; patch -R -p1