#!/bin/sh
# phlogit-1.3 created by beaker@simple Dec 29 01:00:08 PST 2003
#
###################################################################
# 'phlogit' creates a text file named "mm-dd-year" in the TARGETDIR
# directory, changes the permissions to "644" and opens it with 'vi'.
# After file is closed, it runs 'ispell -x' and 'fmt' and prints
# file to screen for review. If anything other than "N" or "n" is
# entered the file is reopened for corrections, otherwise the script
# exits.
#
# ----------Revision history----------
# phlogit-1.3 Dec 29 01:00:08 PST 2003
# added assignable EDITOR & SPELLER variables
# reinstigated temp file for 'fmt' option (bug fix)
# phlogit-1.2 Dec 24 22:57:57 PST 2003
# added "do you want 'fmt'?" option
# elliminated temp file when running 'fmt' option
# added blank line offsets from header date
# added "vi -c \$" to place cursor correctly
# improved how append and overwrite are executed
# phlogit-1.1 Dec 4 16:54:26 PST 2003
# changed target dir from current to TARGETDIR
# phlogit-1.0 Oct 4 01:50:53 PDT 2003
# initial release
#
####################################################################
# Set target directory:
TARGETDIR=`/bin/pwd`