#!/bin/sh ###################################################################### # template - Bourne shell script template # Created 2006-8-24 by David Meyer. # * Template will need revision for GPL release. ###################################################################### # Identification ##################################################### PROGRAM='template' VERSION=0.0 COPYRIGHT='Copyright (C) 200x David Meyer' DESCRIPTION='Bourne shell script template' USAGE="Usage: $0 [OPTIONS] [ARGUMENTS]" CONTACT='David Meyer <papa@jtan.com>' # Initialize environment ############################################# unset IFS PATH=/bin:/usr/bin # Arguments ########################################################## while getopts Vh option do case $option in V ) echo "$PROGRAM $VERSION" echo $COPYRIGHT exit 0 ;; h ) cat << ENDHELP $USAGE $DESCRIPTION Options: ... -V Display version number -h Display this help message Report bugs to $CONTACT. ENDHELP exit 0 ;; * ) echo $USAGE >&2 exit 1 ;; esac done shift $(( $OPTIND-1 )) # Functions ########################################################## # Main driver ######################################################## exit 0