OPT_DROP=yes
OPT_CREATE=yes
OPT_WITH_TOPO=no
+OPT_WITH_RASTER=no
if echo '\c' | grep c >/dev/null 2>&1; then
ECHO_N='echo -n'
OPT_WITH_TOPO=yes
shift
continue
+ elif test "$1" = "--raster"; then
+ OPT_WITH_RASTER=yes
+ shift
+ continue
else
break
fi
echo "Topology support skipped (topology.sql not found)"
fi
fi
+ if test x"$OPT_WITH_RASTER" = "xyes"; then
+ if test -e ${REGDIR}/../raster/rt_pg/rtpostgis.sql; then
+ echo "Adding topology support"
+ ${PSQL} ${_psql_opts} -Xf ${REGDIR}/../raster/rt_pg/rtpostgis.sql "${DB}" >> ${TMPDIR}/regress_log 2>&1
+ else
+ echo "Raster support skipped (rtpostgis.sql not found)"
+ fi
+ fi
else
echo "Database ${DB} does not exist" >&2