[postgis-tickets] r15685 - Simplify version extraction

Sandro Santilli strk at kbt.io
Mon Sep 11 09:36:37 PDT 2017


Author: strk
Date: 2017-09-11 09:36:37 -0700 (Mon, 11 Sep 2017)
New Revision: 15685

Modified:
   trunk/.drone.yml
Log:
Simplify version extraction

.. and use paste(1) which is worth learning :)

Modified: trunk/.drone.yml
===================================================================
--- trunk/.drone.yml	2017-09-11 16:25:58 UTC (rev 15684)
+++ trunk/.drone.yml	2017-09-11 16:36:37 UTC (rev 15685)
@@ -21,4 +21,5 @@
       - service postgresql start
       - make check RUNTESTFLAGS=-v
       - make install
-      - utils/check_all_upgrades.sh `grep POSTGIS_MAJOR_VERSION Version.config | cut -d= -f2`.`grep ^POSTGIS_MINOR_VERSION Version.config | cut -d= -f2`.`grep ^POSTGIS_MICRO_VERSION Version.config | cut -d= -f2`
+      - utils/check_all_upgrades.sh \
+        `grep '^POSTGIS_' Version.config | cut -d= -f2 | paste -sd '.'`



More information about the postgis-tickets mailing list