dosmap21.zip unix->dos directory/file name transform [perl] This is a perl script to take a unix hierarchy structure, and transform it into a dos compliant one. This means that unix filenames will get changed to dos-compliant ones, AND that references in (uncompressed) files will also get changed to reflect those name changes. For example, makefiles and header files will automatically be updated. Obviously there is no magic way of knowing exactly when a string in a file is a filename as opposed to just some string, so there is the possibility for errors. However, I have found this utility very useful in converting complex program directory structures automatically. This latest version allows you to make a history file of the conversion, so that the converted form can be "unconverted". This is useful if, like me, you sometimes work at home on a DOS box and want to take a take hierarchy home, work on it, and bring it back. USAGE: dosmap.prl [-i -h ] This maps the source hierarchy to a DOS compliant version in . The "-i" flag allows for interactive name changing, i.e., the script prompts you with its suggestion, you hit to accept it, and anything else to replace it. In the case where two files map into the same name, the program reports an error and terminates. This is not optimal and I hope later to change this behaviour. The -h option stores a history of changes made in the file . This file can be used to un-transform the mapped hierarchy back into the Unix version. This is done by: dosmap.prl -u -h (C) Afzal Ballim, 1993,1994 Please send any bug reports, etc., to: Afzal Ballim, This program is FREEWARE. You may distribute it in what ever form you wish as long as long as this copyright notice are kept intact. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ===================================================================== Afzal Ballim | Internet: afzal@divsun.unige.ch ISSCO, University of Geneva | X400: S=afzal;OU=divsun;O=unige; 54 route des Acacias | PRMD=switch;ADMD=arcom;C=ch CH-1227 GENEVA (Switzerland) | UUCP: mcvax!cui!divsun.unige.ch!afzal Tel: +41/22/705 71 12 | FAX: +41/22/300 10 86 | http://issco_www.unige.ch/