[postgis-tickets] [SCM] PostGIS branch master updated. 1b1c18320a24d7fc5855e7331b3cb2f7bca7de0b

git at osgeo.org git at osgeo.org
Fri Dec 27 05:41:03 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  1b1c18320a24d7fc5855e7331b3cb2f7bca7de0b (commit)
      from  478f3023be5ed7e6d3f2841c6e88b65a63700340 (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 1b1c18320a24d7fc5855e7331b3cb2f7bca7de0b
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Dec 27 14:40:02 2019 +0100

    Simplify timestamp extraction from NEWS
    
    Hopefully closes #4609 [skip NEWS]

diff --git a/utils/check_news.sh b/utils/check_news.sh
index b27753e..c8f769b 100755
--- a/utils/check_news.sh
+++ b/utils/check_news.sh
@@ -46,8 +46,8 @@ grep -B1 '^[0-9]\{4\}/[0-9]\{2\}/[0-9]\{2\}' NEWS |
   while read rel; do
     read date
     read sep
-    ts=$( date -d "${date}" '+%s' )
-    pts=$( date -d "${pdate}" '+%s' )
+    ts=$( echo "${date}" | tr -d '/' )
+    pts=$( echo "${pdate}" | tr -d '/' )
     if test $ts -gt $pts; then
       echo "FAIL: ${rel} (${date}) appears after ${prel} (${pdate})"
       exit 1

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

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list