latest_editions.dcgi - 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
---
latest_editions.dcgi
---
1 #!/bin/sh
2
3 . ../common/config.sh
4
5 EDITION_CGI="${CGI_BASEDIR}/ilmanifesto/edition.dcgi"
6
7 echo ""
8 echo "il manifesto"
9 echo ""
10
11 awk -v cgi="${EDITION_CGI}" '
12 BEGIN {
13 N = 14 # number of editions
14
15 for (i = 0; i <= N; i++) {
16 edition = strftime("%d-%m-%Y", systime() - (i * 3600 * 24))
17 printf("[1|%s|%s?%s|server|port]\n", edition, cgi, edition)
18 }
19 }
20 '