home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / perl / dosmap.doc < prev    next >
Internet Message Format  |  1994-03-07  |  1KB

  1. Date: Wed, 3 Nov 1993 13:04:20 EST
  2. From: afzal@divsun.unige.ch (Afzal Ballim)
  3. To: MSDOS-Ann@SimTel.Coast.NET (MS-DOS upload announce)
  4. Subject: dosmap.prl - perl script:unix->dos hierarchy transformation
  5.  
  6. pub/msdos/perl/
  7. dosmap.prl      perl script:unix->dos hierarchy transformation
  8.  
  9. This is a perl script to take a unix hierarchy structure, and transform it
  10. into a dos compliant one.  This means that unix filenames will get changed
  11. to dos-compliant ones, AND that references in (uncompressed) files will
  12. also get changed to reflect those name changes. For example, makefiles and
  13. header files will automatically be updated. Obviously there is no magic
  14. way of knowing exactly when a string in a file is a filename as opposed to
  15. just some string, so there is the possibility for errors. However, I have
  16. found this utility very useful in converting complex program directory
  17. structures automatically.
  18.  
  19. The "-i" flag allows for interactive name changing, i.e., the script
  20. prompts you with its suggestion, you hit <CR> to accept it, and anything
  21. else to replace it. 
  22.  
  23. In the case where two files map into the same name, the program reports an
  24. error and terminates. This is not optimal and I hope later to change this
  25. behaviour.
  26.  
  27. I am not a perl programmer, so please forgive my abuse of that language.
  28. The utility may be freely distributed/changed.
  29.  
  30. (Uploaded by the author, Afzal Ballim, <afzal@divsun.unige.ch>)
  31.