Add a DCGI to list latest N editions of il manifesto - gophercgis - Collection of gopher CGI/DCGI for geomyidae
 (HTM) hg clone https://bitbucket.org/iamleot/gophercgis
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) changeset ed57707e7c8abcac3c96cc41e97b04e2a005af5e
 (DIR) parent 8921750c245138a30b4e41d79ac2ca05e6500c76
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sat,  8 Dec 2018 23:24:51 
       
       Add a DCGI to list latest N editions of il manifesto
       
       Diffstat:
        ilmanifesto/latest_editions.dcgi |  20 ++++++++++++++++++++
        1 files changed, 20 insertions(+), 0 deletions(-)
       ---
       diff -r 8921750c2451 -r ed57707e7c8a ilmanifesto/latest_editions.dcgi
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/ilmanifesto/latest_editions.dcgi  Sat Dec 08 23:24:51 2018 +0100
       @@ -0,0 +1,20 @@
       +#!/bin/sh
       +
       +. ../common/config.sh
       +
       +EDITION_CGI="${CGI_BASEDIR}/ilmanifesto/edition.dcgi"
       +
       +echo ""
       +echo "il manifesto"
       +echo ""
       +
       +awk -v cgi="${EDITION_CGI}" '
       +BEGIN {
       +       N = 14  # number of editions
       +
       +       for (i = 0; i <= N; i++) {
       +               edition = strftime("%d-%m-%Y", systime() - (i * 3600 * 24))
       +               printf("[1|%s|%s?%s|server|port]\n", edition, cgi, edition)
       +       }
       +}
       +'