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

mirabilos at evolvis.org mirabilos at evolvis.org
Sat Nov 29 14:02:38 CET 2014 • <20141129130238.9B7754A25E0@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  561e34da4842cc76c6681cb29b21b4dd58a75b2c (commit)
      from  896099ce3cb95215c04c58b1b0c237ab5139c159 (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 561e34da4842cc76c6681cb29b21b4dd58a75b2c
Author: Thorsten Glaser <tg at mirbsd.org>
Date:   Sat Nov 29 13:02:42 2014 +0000

    near the end of the month, expedition planning is aided by a look into the future

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

Summary of changes:
 README                       |    1 +
 geodashing.cgi => gdnext.cgi |    3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
 copy geodashing.cgi => gdnext.cgi (98%)

diff --git a/README b/README
index 73f2e15..01fef3a 100644
--- a/README
+++ b/README
@@ -31,6 +31,7 @@ Variants:
 – ghybermorgen.cgi (mirkarte.js): same, but for the day after the next
 – geovexilla.cgi (mirkarte.js): displays GeoVexilla.gpsgames.org flags
 - geodashing.cgi (mirkarte.js): displays GeoDashing.gpsgames.org dashpoints
+- gdnext.cgi (mirkarte.js): same, but for the next month
 
 Helpers:
 - gpx.cgi (q=waypoint): download GPX for waypoints (work in progress)
diff --git a/geodashing.cgi b/gdnext.cgi
similarity index 98%
copy from geodashing.cgi
copy to gdnext.cgi
index 4593764..1522639 100755
--- a/geodashing.cgi
+++ b/gdnext.cgi
@@ -29,7 +29,8 @@ deflat=50.7
 deflon=7.11
 defzoom=9
 set -A defyear -- $(date +'%y %m')
-defmon=${defyear[1]}
+(( defmon = (defyear[1] % 12) + 1 ))
+(( defmon == 1 )) && (( ++defyear ))
 
 xff="${HTTP_X_FORWARDED_FOR:+$HTTP_X_FORWARDED_FOR, }$REMOTE_ADDR"
 set -A fetch -- ftp -H "X-Forwarded-For: $xff" -H "User-Agent: MirKarte/0.2 (Beta; +https://evolvis.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=useful-scripts/mirkarte.git using MirBSD ftp)" -o -


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


More information about the useful-scripts-commits mailing list