[geos-commits] [SCM] GEOS branch main updated. dcba3b6a323523b3ef6ab5016ccb9b19f719c144

git at osgeo.org git at osgeo.org
Thu Oct 14 01:37:26 PDT 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main has been updated
       via  dcba3b6a323523b3ef6ab5016ccb9b19f719c144 (commit)
      from  ba5ad9eeaa3253ef100c4b9131b078156468560b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dcba3b6a323523b3ef6ab5016ccb9b19f719c144
Author: Sandro Santilli <strk at kbt.io>
Date:   Thu Oct 14 10:37:14 2021 +0200

    Stub a cmake wrapper called ./configure

diff --git a/.gitignore b/.gitignore
index d116d9e..edb5a2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -66,7 +66,6 @@ config.guess
 config.log
 config.status
 config.sub
-configure
 depcomp
 doc/Doxyfile
 doc/example
diff --git a/configure b/configure
new file mode 100755
index 0000000..811a09b
--- /dev/null
+++ b/configure
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+which cmake > /dev/null 2>&1 || {
+  echo "You need cmake to build this package" >&2
+  exit 1
+}
+
+srcdir=$(dirname $0)
+
+usage() {
+  echo "$0 [--prefix=<prefix>] [--help]"
+}
+
+cmd=cmake
+
+options=$(getopt -l "help,prefix:" "" "$@")
+#echo XXXX ${options}
+eval set -- "$options"
+
+while true; do
+  case $1 in
+    --prefix)
+      shift
+      cmd="${cmd} -DCMAKE_INSTALL_PREFIX:PATH=$1"
+      ;;
+    --help)
+      usage
+      exit
+      ;;
+    --)
+      shift
+      break
+      ;;
+    *)
+      echo "Unrecognized switch $1" >&2
+      usage >&2
+      exit 1
+      ;;
+  esac
+  shift
+done
+
+cmd="${cmd} ${srcdir}"
+
+echo
+echo "WARNING: this script is a wrapper for cmake"
+echo
+echo "INFO: Invoking ${cmd}"
+echo
+$cmd
+
+echo
+echo "HINT: for interactive configuration use ccmake ${srcdir}"
+echo

-----------------------------------------------------------------------

Summary of changes:
 .gitignore |  1 -
 configure  | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 1 deletion(-)
 create mode 100755 configure


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list