#!/bin/sh
# pocketmod generator script (prints postscript to stdout)
# pesco 2010, isc license


# define the page generation functions below ...

front() {
  # today
  watnu
}

page1() {
  # empty
}

page2() {
  # tomorrow
  today=`date -v+1d +%x` watnu 2>/dev/null
}

back() {
  # empty
}


# generate pocketmod
# note: only these four pages supported
(
  back  | head -n 42; printf "\f"
  front | head -n 42; printf "\f"
  page1 | head -n 42; printf "\f"
  page2 | head -n 42; printf "\f"

) | a2ps -q -8l50 -c -a1-4 -i -B --borders=off -o -
