This is the readme for deldupe.bat
Written by Aaron Stackpole (aaron.stackpole@mzi.com)

In a nutshell (What it does):
-----------------------------
   This batch file will delete duplicate textures from your baseq2/
textures folder.
--------------------------------------------------------------------
    *** IMPORTANT *** IMPORTANT *** IMPORTANT *** IMPORTANT *** 
*------------------------------------------------------------------*
|    Please note that this will not delete textures based on their |
| FILE NAME, but on what they LOOK LIKE, as there are several      |
| textures in the textures/eXuX structure that share file names,   |
| but don't look the same.                                         |
*------------------------------------------------------------------*

The short version:
------------------
Before you run the batch file, do the following, IN ORDER!

1) Use a utility like WinPAK and extract all of the textures from
   PAK1.PAK first.
2) Extract all of the textures from PAK0.PAK so that files from
   PAK1 get overwritten.
3) Copy the deldupe.bat file into your baseq2/textures folder.
4) Goto a command prompt, and execute the batch file from baseq2/
   textures.  You will be promted if you are certain you want
   to continue.

Things that may happen that are bad:
------------------------------------

1) If you are working on levels right now, and you have been using
   textures that get deleted, you'll have to find them and repair
   the texture on broken brushes.  For example:  If you have been
   using e1u3/sky1 for all your sky brushes, you will have to change
   all of the surfaces of your sky brushes to use e1u1/sky1.  As you
   can see, this could be a pain.
2) If you use an editor that only shows textures from a specific unit,
   you may have problems finding all of the textures you want.  Bear in
   mind that I wrote this for myself, and I use Worldcraft.  I like to
   see all the textures I can use at once.  If you use an editor like
   QERadiant, you probably don't want to use this batch file, because
   it will delete a lot of textures from all of the units except e1u1.
3) You can die spontaneously at any moment.

Other Caveats:
--------------

1) If you have been using the eXuX/sky2 brush anywhere, this batch file
   deletes all instances of it.
2) You can't yell at me if this batch file f**ks up your texture folder.
3) I have used this batch file myself, and I've let a couple of my friends
   try it out, and they didn't have any problems.  If you locate a texture
   that this batch file deleted, that is NOT a duplicate, PLEASE LET ME
   KNOW!!!  I'd hate to ruin anyone's day by distributing something that's
   broken.  Okay?  Okay!

The Long Version:
-----------------
I decided one day that opening up my texture browser in Worldcraft and
seeing eight sky1 textures pissed me off, so I set about trying to get rid
of the duplicates.  Boy was that a mistake! That's where this batch file
came from.

Here's a rough outline of what the batch file does, and how
it got to where it is now.  I spent a few weeks trying to
write a shell script on Linux to do this, then I had a friend
of mine write a Perl script to do it, but neither of those ways
was accurate enough, so I did it by hand.  That's right, I'm
psycho enough to compare all of the textures with all of the
rest of them to determine which textures were actuall duplicates.
Anyway, when I finished sorting them, I printed out a dir list,
then extracted all the textures again, and printed out another
dir list and compared the two lists.  After filtering out all of
the files I didn't want to delete, I converted the file into a
batch file that deletes just duplicates.  Pretty crazy, huh?

If anyone has any problems with this, e-mail me at aaron.stackpole@mzi.com
That's my work address, and I usually answer mail pretty promptly.

I hope this helps!
