From: Mark Bergman Subject: names2dos Porting script upload To: djgpp-announce AT sun DOT soe DOT clarkson DOT edu Date: Wed, 24 Mar 1993 19:23:39 -0500 (EST) The names2dos script has been uploaded to omnigate AT clarkson DOT edu It is in /pub/msdos/djgpp/pub This is a substantially revised version of the script I mailed to individual DJGPP-list readers. I strongly suggest that anyone using the earlier version upgrade to the current version. I would appreciate any feedback on the script. From the man page: ====================================================================== NAME names2dos - convert a directory tree to MS-DOS compliant filenames. SYNOPSIS names2dos [-DEBUG | -d | -V | -L | -h ] directory_tree_ROOT DESCRIPTION names2dos converts filenames in the directory-tree specified to MS-DOS conventions. Typical use for names2dos is in porting software from a Unix system to MS-DOS. A copy of the source code directory tree is made under Unix, then names2dos is run on the copied tree. The converted directory tree is then ``bundled up'' with tar, arc, zip, etc., and downloaded to the MS-DOS sys- tem. Any characters that are invalid for MS-DOS filenames are replaced with a dash (hyphen). The script attempts to deal with unusual filenames, including those containing , *, ?, (, ), [, ], and characters. Filenames are shortened and components of filenames (separated by periods) may be combined. The file and direc- tory names are checked to be unique after they are created. If a non-unique filename is generated, the last character in the base section is changed in an attempt to make the filename unique. Once all changes are made to directory and file names, names2dos checks each file in the directory tree for refer- ences to file names that have been changed. The contents of these files are altered to refer to the re-named files. -- Mark Bergman (Biker, Stagehand, (former) Unix user support grunt) 718-855-9148 bergman AT panix DOT com {cmcl2,uunet}!panix!bergman