#!/bin/sh TEMPDIR=`mktemp -d -t madlib.XXXXXX` "@CMAKE_COMMAND@" -E create_symlink \ "@CMAKE_SOURCE_DIR@" \ "${TEMPDIR}/@MADLIB_PGXN_NAME@" "@CMAKE_COMMAND@" -E create_symlink \ "@CMAKE_CURRENT_BINARY_DIR@/zipignore" \ "${TEMPDIR}/zipignore" cd "${TEMPDIR}" zip --exclude @zipignore \ -r "@CMAKE_CURRENT_BINARY_DIR@/@MADLIB_PGXN_NAME@.zip" \ "@MADLIB_PGXN_NAME@"