[tarent-useful-scripts SCM] {mirkarte} branch master updated. dab6b9f36a0548775840adb2b4f73b4095235a81

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Nov 14 19:42:19 CET 2014 • <20141114184219.BFD7D4A25DE@evolvis.org>


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 "MirKarte source code repository".

The branch, master has been updated
       via  dab6b9f36a0548775840adb2b4f73b4095235a81 (commit)
      from  36005ff11faa34a74692fefc58db12a06911f7fc (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 dab6b9f36a0548775840adb2b4f73b4095235a81
Author: Thorsten Glaser <tg at mirbsd.org>
Date:   Fri Nov 14 18:40:29 2014 +0000

    GeoVexilla flags have their expiry time as “event/placed” date

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

Summary of changes:
 gpx.sh |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gpx.sh b/gpx.sh
index b0f9bd5..5fff1d2 100755
--- a/gpx.sh
+++ b/gpx.sh
@@ -286,7 +286,8 @@ case $wptype {
 	flag=$(sed -n '/^.*src=".images.flags.*title="\([^"]*\)".*$/s//\1/p' <"$T")
 	lattxt=${|decmin2txt ${lat%.*} .${lat#*.} N S 2;}
 	lontxt=${|decmin2txt ${lon%.*} .${lon#*.} E W 3;}
-	wptime=$now						# date placed
+	wptime=$(sed -n '/Expires:/s/^.* \(2[0-9][0-9][0-9]-[01][0-9]-[0-3][0-9]\) \([0-2][0-9]:[0-5][0-9]:[0-6][0-9]\) UTC\( .*\)\{0,1\}$/\1T\2Z/p' "$T")
+	[[ -n $wptime ]] || wptime=$now				# date placed
 	wpname=$wp						# WP code full
 	wpcode=${wp//-}						# WP code 8byte
 	wpdesc="$wp${flag:+ $flag} flag"			# title text


hooks/post-receive
-- 
MirKarte source code repository
(Evolvis project useful-scripts repository mirkarte)


More information about the useful-scripts-commits mailing list