From 318e32f8b022d38a87c5ee9d72db7298a9157a59 Mon Sep 17 00:00:00 2001 From: Matthieu Guilbert Date: Sat, 5 Oct 2019 15:06:02 +0800 Subject: [PATCH] Add postgis installation --- bin/pgenv | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/bin/pgenv b/bin/pgenv index 958dc81..8eaaa75 100755 --- a/bin/pgenv +++ b/bin/pgenv @@ -87,6 +87,20 @@ The pgenv commands are: available Show which versions can be downloaded check Check all program dependencies config View, edit, delete the program configuration + extensions Install extension + +For full documentation, see: https://github.com/theory/pgenv#readme +EOF +} + +pgenv_extensions_help() { + cat < [] + +The extensions commands are: + available Show which versions can be downloaded + build Build a specific version of an extension + help Show this usage statement and command summary For full documentation, see: https://github.com/theory/pgenv#readme EOF @@ -827,6 +841,79 @@ case $1 in exit ;; + extensions) + v=$( pgenv_current_postgresql_or_exit ) + action=$2 + case "$action" in + # TODO: Add clean action + available) + for version in $( curl -s http://download.osgeo.org/postgis/source/ \ + | grep -o '