usage: long2dos.py dirname

Convert a tree of files so that they'll work under DOS.
Renames files with names longer than DOS's 8.3 limit, makes
sure the names are unique even without case-sensitivity.

After we've converted the file names, we'll need to also
replace internal references to those names inside the HTML
(now HTM :-) files.  We'll look for file references in SRC,
HREF and BACKGROUND attributes which don't start with http:
or ftp:, and replace path components where appropriate.

WARNING:  This MODIFIES THE DIRECTORY TREE IN PLACE.  You'll
DEFINITELY want to make a copy of the directory before
running long2dos.py on it.

WARNING:  This will fail if there are syntax errors in your
HTML document!!

By default, this programs prints out a lot of guff
about its progress.  You might want to edit the program
and set VERBOSE to 0, (or make it a commandline option).

# Copyright 1997 University of Sydney (http://www.usyd.edu.au/)
# Written by Gary Capell ([email protected])