[postgis-tickets] [SCM] PostGIS branch master updated. 6e7577ad611fa6923afbd6a1846a0c4dfd3f553a

git at osgeo.org git at osgeo.org
Thu Dec 19 01:52:39 PST 2019


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 "PostGIS".

The branch, master has been updated
       via  6e7577ad611fa6923afbd6a1846a0c4dfd3f553a (commit)
      from  68d09a9aa24e6c6ad593cc531572f518f71d9cf1 (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 6e7577ad611fa6923afbd6a1846a0c4dfd3f553a
Author: Sandro Santilli <strk at kbt.io>
Date:   Thu Dec 19 10:52:30 2019 +0100

    Fix handling of sourcedir argument

diff --git a/utils/check_news.sh b/utils/check_news.sh
index cf13fed..3a15bd7 100755
--- a/utils/check_news.sh
+++ b/utils/check_news.sh
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-RD=`dirname $0`/.. # root source dir
-
 usage() {
   echo "Usage: $0 [-v] [--ticket-refs] [<sourcedir>]"
   echo "Sourcedir defaults to one directory above this script"
@@ -11,6 +9,7 @@ usage() {
 ### COMMAND LINE PARSING
 VERBOSE=no
 TICKET_REFS=no
+RD= # Root source dir
 while [ $# -gt 0 ]; do
   if [ "$1" = "--help" ]; then
     usage
@@ -19,6 +18,8 @@ while [ $# -gt 0 ]; do
     VERBOSE=yes
   elif [ "$1" = "--ticket-refs" ]; then
     TICKET_REFS="yes"
+  elif [ -z "${RD}" ]; then
+    RD=$1
   else
     echo "ERROR: unrecognized extra argument $1" >&2
     usage >&2
@@ -27,6 +28,9 @@ while [ $# -gt 0 ]; do
   shift
 done
 
+if [ -z "${RD}" ]; then
+  RD=`dirname $0`/..
+fi
 
 cd ${RD}
 

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

Summary of changes:
 utils/check_news.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list