#! /usr/bin/env python
# This program reads all *.py and test/*.py in "libDir", and
-# copies those files with illegal DOS names to libDir/dos_8x3.
+# copies those files with illegal DOS names to libDir/dos-8x3.
# Names are illegal if they are longer than 8x3 chars or if they
# contain uppercase chars. It also tests for name collisions.
-# You must first create the directory libDir/dos_8x3 yourself.
-# You should remove all files in dos_8x3 if you run it again.
+# You must first create the directory libDir/dos-8x3 yourself.
+# You should remove all files in dos-8x3 if you run it again.
-# CHANGE libDir TO THE CORRECT DIRECTORY. RM dos_8x3/* FIRST.
+# CHANGE libDir TO THE CORRECT DIRECTORY. RM dos-8x3/* FIRST.
import sys, os, regex, string
def make8x3():
reg_uppercase = regex.compile("[A-Z]")
collisions = {} # See if all names are unique in first 8 chars.
- destDir = os.path.join(libDir, "dos_8x3")
+ destDir = os.path.join(libDir, "dos-8x3")
if not os.path.isdir(destDir):
print "Please create the directory", destDir, "first."
err()