#!/bin/sh
#
# fetch:
#
# Copyright (c) 2002 James McKenzie <james@fishsoup.dhs.org>,
# All rights reserved.
#
# $Id:$
#
# $Log:$
#

mkdir -p NOBACKUP

. ./shifttime


H=..

B=$H/bin

if [ ! -f etnext ]; then
  touch -t 200001010101.00 etnext
fi

touch etnow

if [ etnow -nt etnext ]; then
  make earthterm

  echo drawing bumpmaped mountains

  $B/termbump NOBACKUP/earth-day.ppm NOBACKUP/earth-night.ppm ${TIME} > NOBACKUP/earth-term.ppm || /bin/rm -f NOBACKUP/earth-term.ppm

  touch etnext -t `date -d 'now+10mins' '+%Y%m%d%H%M.%S'`

fi





