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

mirabilos at evolvis.org mirabilos at evolvis.org
Sat Jul 29 18:04:57 CEST 2017 • <20170729160457.A0D634A030B@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  c14329c2710b6ad360d6e86b91704e8791fa2b20 (commit)
      from  fdefd918ffcb5d86b5310ffb1159aefcf68bac99 (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 c14329c2710b6ad360d6e86b91704e8791fa2b20
Author: mirabilos <m at mirbsd.org>
Date:   Sat Jul 29 16:05:17 2017 +0000

    merge commit fdefd918ffcb5d86b5310ffb1159aefcf68bac99

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

Summary of changes:
 gdnext.cgi | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gdnext.cgi b/gdnext.cgi
index 57e0bec..d9d772a 100755
--- a/gdnext.cgi
+++ b/gdnext.cgi
@@ -1,6 +1,6 @@
 #!/bin/mksh
 #-
-# Copyright © 2014
+# Copyright © 2014, 2017
 #	Thorsten “mirabilos” Glaser <tg at mirbsd.org>
 #
 # Provided that these terms and disclaimer and all copyright notices
@@ -101,8 +101,9 @@ Content-type: text/html; charset=utf-8
 EOF
 print "  mirkarte_default_loc = [$deflat, $deflon, $defzoom];"
 
-"${fetch[@]}" "http://geodashing.gpsgames.org/cgi-bin/stats.pl?startmonth=$defmon&startyear=$defyear&endmonth=$defmon&endyear=$defyear&radius=200&lat_1=$deflat&lon_1=$deflon&statstype=circle&download=Download&downloadformat=LOC" | \
-    xmlstarlet sel -t -m //waypoint -v name/@id -o ' ' -v coord/@lat -o ' ' -v coord/@lon -n |&
+"${fetch[@]}" "http://geodashing.gpsgames.org/cgi-bin/stats.pl?startmonth=$defmon&startyear=$defyear&endmonth=$defmon&endyear=$defyear&radius=200&lat_1=$deflat&lon_1=$deflon&statstype=circle&download=Download&downloadformat=GPX" | \
+    sed '1s/ xmlns="[^"]*"//' | \
+    xmlstarlet sel -t -m //*/wpt -v name -o ' ' -v @lat -o ' ' -v @lon -n |&
 n=0; print "  var geodashing_arr = ["
 while read -pr id lat lon; do
 	[[ $id = [0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z] ]] || continue


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


More information about the useful-scripts-commits mailing list