home *** CD-ROM | disk | FTP | other *** search
-
- Arc2Arc 2.8 - by Rolf Max Rotvel
-
-
- DESCRIPTION
- Arc2Arc is a universal archive converter.
-
- Unlike the typical lha -> lzx converters you can configure this one to
- convert to and from any archive format you like.
- Examples: gz to zip, tgz to lha, lzx to lha (of course :-)) or even dms
- to lha!
-
- Arc2Arc uses the standard List syntax when specifying archive files. This
- means wildcard support and the ALL/S, PAT/K, etc keywords.
- It's also possible to convert different archive formats in one go. Like
- converting all zip and lha files in a directory to lzx.
-
- Arc2Arc also copies any filenote from the original archive to the new.
- Also it automatically converts any dots in new archive names to
- underscores to make sure the correct suffix is added by the archiver and
- hyphenates any spaces in archive filenames.
-
-
- INSTALLATION
- Copy the script to rexx:
- Copy arc2arc.prefs to s:
-
-
- CONFIGURATION
- Load the configuration (s:arc2arc.prefs) file into your text editor and
- change the settings to suit your system.
- NB: Don't forget that the configuration file is actually an Arexx script
- so stick to Arexx conventions. Ie: Don't use ';' as comment identifier
- etc. If in doubt just change the values and don't touch anything else.
-
- The first word of the dearchiver description strings is the archive
- suffix. Arc2Arc uses this to figure out which dearchiver to launch. You
- don't have to worry about case, but you must include all the dots (Eg:
- .LHA, .TAR.GZ, etc).
-
- It's important that you think a bit about the order of the list. If you
- list .GZ before .TAR.GZ, .tar.gz archives will be recognized as straight
- .gz archives. So childpatterns must be listed before parentpatterns.
-
- The rest of the dearchiver string is the actual command including options.
- If the dearchiver requires redirection (Like GZip) you must include the
- '>' sign at the end of the dearchiver string.
-
-
- The first word of the archiver strings is the archive type. This must be
- the same as the suffix created by the archiver, but without any dots (Eg:
- LHA, LZX). Case isn't important.
- The rest of the archiver string is the actual command including options.
- Note: You can only use archivers capable of archiving the contents of a
- directory, like LhA, Lzx or Zip). 'Single file' archivers like GZip won't
- work.
-
-
- Tmpdir is the directory where Arc2Arc creates its work directory. Keep
- this in t: if you have enough ram.
-
-
- Nodearcstr is the error message Arc2Arc displays if it can't find any
- dearchiver for a file.
- Overwritestr is the prompt Arc2Arc displays when it asks if it should
- overwrite an existing archive.
- You can translate these message to your language if you like. All other
- error messages in Arc2Arc are from system commands, ie: they are already
- translated.
-
-
- USAGE
- rx arc2arc [ARCTYPE],DIR/M,P=PAT/K,SUB/K,SINCE/K,UPTO/K,ALL/S
-
- [ARCTYPE]
- is the name of the archive format you want to convert to. This should
- match one of the archivers you have configured (But again, case doesn't
- matter). You can specify the arctype anywhere on the commandline.
- If you don't specify this Arc2Arc will use the default archiver (arc.1).
-
- DIR/M,P=PAT/K,SUB/K,SINCE/K,UPTO/K,ALL/S
- Arc2Arc uses List to create a list of archives to process. This means you
- can use wildcards and the List file selection options listed above.
- Don't use FILES/S or DIRS/S or any of the display format options like
- LFORMAT/K. But nothing should happen if you do anyway - Arc2arc will
- simply display some error messages and exit.
-
- Examples:
- rx arc2arc ZIP dl:test1.lha dl:test2.lzx
- This will create the archives dl:test1.zip and test2.zip
-
- rx arc2arc dl:#?.zip
- Assuming that LZX is your default archiver this will convert all your zip
- files in dl: to lzx.
-
- rx arc2arc dl: ALL PAT #?.zip LHA
- Scan all subdirectories of dl: for zip files and convert them to lha.
-
- rx arc2arc "dl:te st1.lha" dl:test2.2.zip" LZX
- This will create the archives dl:te-st1.lzx and test2_2.lzx
-
- rx arc2arc ZIP dl:test.lha dl:test.lzx
- Here Arc2arc detects that dl:test.zip will be created twice and asks if
- you want to overwrite the first copy or skip converting this archive.
-
- The original files are not deleted of course.
-
- If an error happens while listing, dearchiving or archiving Arc2Arc will
- try to clean up and exit gracefully.
-
-
- NOTES
- Sometimes Arc2Arc isn't able to delete its temp directory, just the
- contents of it. This is probably because some archivers doesn't release
- their lock on this directory properly. You'll get an error message if this
- happens.
-
- Don't forget to add all necessary options to your archivers. Like LhA -r
- that enables archiving of subdirectories.
-
- Arc2Arc uses a temporary arc2arc: assign to circumvent any problems with
- spaces in paths (Eg: "Ram Disk"). This is why you this assign turns up
- in packer/unpacker output.
-
-
- CREDITS:
- Thanks to
-
- Michael for the emails.
- Javier de las Rivas for the bugreport/suggestions.
-
-
- COPYRIGHT
- No copyright. Do whatever you want with this.
-
-
- DISCLAIMER
- It's all your fault :-)
-
-
- AUTHOR
- Please send send any comments you might have to me:
- rolfrotvel@bigfoot.com
-
-
- HISTORY:
- 2.5 - First release.
- 2.6 - Readded deleting of tmpdir.
- Added support for converting many files in one go.
- Added wildcard support.
- <arctype> can be anywhere on commandline.
- Any '.' in filename are removed.
- Added protection against overwriting of new files.
- 2.7 - Bugfix: Converting files in current dir failed.
- Added AmigaDOS dms2dir script.
- Added support for most of the c:List file selection options.
- Added much better error handling.
- 2.8 - Fixed all problems with spaces in path/filenames (Javier de las
- Rivas).
- Removed the file renaming system if an archive was about to be
- overwritten. Now it prompts with an 'Overwrite [y/N]'.
- Moved configuration section to an external file.
- Made it possible to 'translate' Arc2Arc (Javier de las Rivas).
- Dots in new archive names are now translated to underscores instead
- of being removed.
-
-