#!/bin/sh -x
#---------#---------#---------#---------#---------#---------#---------#---------
#
# title
#   generate a checksum of a directory index
# author
#   idc@planetlarg.net 12 march 08
# description
#   bit like tripwire does
# modifications
#
#---------#---------#---------#---------#---------#---------#---------#---------
# setup
   usage_message="
   usage:
      $0
   example:
      the command
         $0
      returns
         something
   description
      Does some stuff.
      Doesn't do other stuff.
   "
# command line options
   # options provided? tell the punter how to use this utility
   if [ $# -ne 0 ]; then
      echo "no options were provided."
      echo "$usage_message" 1>&2
      exit 1
   fi


# main
   # do some stuff here
    /usr/bin/find  \
    /var/www/www.isp01.com/pub > \
    /tmp/it.txt  2>&1
    #
    /usr/bin/md5sum /tmp/pub.txt > \
    /var/www/www.isp01.com/pub/pub.md5 2>&1
    #
